Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Package Manager and Bitcode #1078

Open
bukira opened this issue Oct 12, 2020 · 0 comments
Open

Swift Package Manager and Bitcode #1078

bukira opened this issue Oct 12, 2020 · 0 comments

Comments

@bukira
Copy link

bukira commented Oct 12, 2020

What did you do?

Add SwiftyJSON as a SPM package

What did you expect to happen?

I could build swiftyJSON for watchOS with Bitcode

What actually happened instead?

Fails
ld: bitcode bundle could not be generated because '/xxs/Library/Developer/Xcode/DerivedData/SwiftUI-armthkmaplrjrnfxyfrdhayusjxo/Build/Products/Release-watchos/SwiftyJSON.o' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file '/xxx/Library/Developer/Xcode/DerivedData/SwiftUI-armthkmaplrjrnfxyfrdhayusjxo/Build/Products/Release-watchos/SwiftyJSON.o' for architecture armv7k
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Environment

List the software versions you're using:

  • SwiftyJSON: 5
  • Xcode Version: 12GM
  • Swift Version: 5.3

Please also mention which package manager you used and its version. Delete the
other package managers in this list:

  • Swift Package Manager

Project that demonstrates the issue

How do I get bitcode to work with SPM, in a normal framework the project file says that bitcode is enable, but as SPM has no project I would then expect the parent project to dictate this but I cannot get this to work

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

No branches or pull requests

1 participant