Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Unable to archive with Xcode #44

Open
TarangKhanna opened this issue Feb 14, 2016 · 4 comments
Open

Unable to archive with Xcode #44

TarangKhanna opened this issue Feb 14, 2016 · 4 comments

Comments

@TarangKhanna
Copy link

My code builds and runs but when i try to archive it the RobotKit(RKOllie.o) causes problems which I get from the Sphero iOS SDK. The error is:
ld: bitcode bundle could not be generated because '/Users/THacked96/Downloads/Sphero-iOS-SDK-master/frameworks/RobotKit.framework/RobotKit(RKOllie.o)' was built without full bitcode. All object files and libraries 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)

I tried adding -fembed-bitcode to Other C Flags but that didn't help.

@iamcgn
Copy link
Contributor

iamcgn commented Feb 16, 2016

Hi @TarangKhanna,

I'm looking into this issue. In the mean time you can disable bitcode in the main project and continue to use this framework. The -fembed-bitcode flag only works if you're building the framework from source. That flag tells the compiler to add the bitcode section in the binary. We did build the frameworks with this flag, it just looks like a debug vs release build issue. I will update you when I have more info.

@TarangKhanna
Copy link
Author

thanks! I have another problem target ' Extension' has bitcode disabled (ENABLE_BITCODE = NO), but it is required for the 'watchos' platform, this shouldn't happen because I am only running the sphero library with the iOS target

@iamcgn
Copy link
Contributor

iamcgn commented Feb 17, 2016

It sounds like you turned bitcode off at the project level rather than the target level. If you click on the iOS app target you can disable bitcode for that target only.

@pip8786
Copy link

pip8786 commented Sep 21, 2016

Using the command line tools, I had to remove the Info.plist from the RobotKitUI.bundle in order to be able to use xcodebuild -exportArchive to create an IPA. Not sure if it's related to this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants