I have a framework project built in Xcode 10, Swift 5 and targeting iOS 11. I've opened the project up in Xcode 11 BETA 4 and executed a build via the command line. I set the Xcode Location setting to Command Line Tools: Xcode 11.0 (11M374r). Here is my xcodebuild arguments:
xcodebuild -configuration Release -target MySDKKit -sdk iphoneos -scheme "My SDK Build" -derivedDataPath ./build clean build
In the project itself, I have the following:
User-Defined
BITCODE_GENERATION_MODE
Debug marker
Release bitcode
The rest of the project build settings are pretty much out of the box. The Valid Architectures arm64 arm64e armv7 armv7s
So here is the error:
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/craig/Documents/Xcode/sdk-ios/MySDKKit/build/Build/Products/Release-iphoneos/MySDKKit.framework/MySDKKit normal arm64
If I remove the Bitcode setting the project builds fine, but I can;t make an archive in an app project. If I enable Bitcode and target iOS 13, the build will also build without issue.
Any ideas?
Many thanks
Craig