mobfishgmbh / Cardboard-VR-Unity-SDK

Apache License 2.0
56 stars 11 forks source link

iOS app build requires bitcode disabled, but other library need it enable. #71

Open bbiaudet opened 4 years ago

bbiaudet commented 4 years ago

Hello, I cannot compile from xcode 11, I have an error Libraries / Cardboard / Plugins / iOS / libsdk.a (message_lite.o) 'does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64.

cdytoby commented 4 years ago

Hello,

In this wiki page, https://github.com/mobfishgmbh/Cardboard-VR-Unity-SDK/wiki/Usage In the "Pre/Post Builds" section, it describes how this can be solved.

bbiaudet commented 4 years ago

thanks, I had read the wiki, but my Unity project has another library that needs bitcode. On the other hand Apple asks for the bitcode for new publication

cdytoby commented 4 years ago

@bbiaudet Can you provide a link about bitcode requirement? In my current knowledge it's not required to publish an app.

It's unfortunate that bitcode is required with another library. But I currently don't have any solution about how to enable them. I'll mark this help wanted.

cdytoby commented 4 years ago

Note:

https://github.com/mobfishgmbh/cardboard

This is a fork from official cardboard which is used here. Code change should happen in there.