Xcodebuild with broken bit

I am building my FAT infrastructure for bitcode distribution using the following command:

xcodebuild -sdk iphoneos CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO xcodebuild -sdk iphonesimulator CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO lipo -create /path/to/iphone/framework /path/to/simulator/framework -output /path/to/universal/framework

My build flags look like this:

enter image description here

but when i integrate the framework into another bitcode and archive project using:

xcodebuild -workspace /path/to/MyApp/app.xcworkspace -scheme app_scheme archive -archivePath /path/to/MyArchive/MyApp.xcarchive | xcpretty

      

I am getting the following errors:

❌  ld: bitcode bundle could not be generated because '/path/to/my/app/Frameworks/MyFramework.framework/MyFramework' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build for architecture armv7

❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)


▸ Linking MyApp

❌  ld: bitcode bundle could not be generated because '/tmp/insert_viewer_build/build_1.46.0.2024_1491206455/Frameworks/InsertFramework.framework/InsertFramework' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build for architecture arm64



❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

      

+3


source to share





All Articles