Skip to content

Link error with Xcode 12.3 #46

@pfvernon2

Description

@pfvernon2

The following error is generated when building ObjectBox projects with Xcode 12.3. I do not see this error when building with previous releases of Xcode.

error: Building for iOS, but the linked and embedded framework 'ObjectBox.framework' was built for iOS + iOS Simulator. …

Basic info:

  • ObjectBox version - 1.4.1 - Manual setup, no CocoaPods or Carthage
  • Reproducibility - Always in Xcode 12.3, never in previous releases
  • Device: iPad Pro 12.9 3rd Gen, x86 Simulator
  • OS: iOS 14.3, macOS 11.1

Steps to reproduce the behavior:

  1. Build project with Xcode 12.2
  2. Note success
  3. Build project with Xcode 12.3
  4. Note error

Expected behavior:
Expect successful build (link) in Xcode 12.3 as with previous Xcode releases.

Logs, stack traces:

Showing All Messages

Prepare build
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Using build description from memory

Build target … with configuration Debug
error: Building for iOS, but the linked and embedded framework 'ObjectBox.framework' was built for iOS + iOS Simulator.…

Build failed    12/15/20, 8:51 AM    0.1 seconds

Additional context:

  • I have reinstalled Xcode 12.2 under macOS 11.1 and confirmed that my project builds as expected. This appears to be specific to Xcode 12.3.
  • Note that I am NOT using either CocoaPods or Carthage. This was a 'manual' setup of ObjectBox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions