On 06/21/2018 05:27 AM, sabaripriya.rangasamy_...@lnttechservices.com wrote: > [Edited Message Follows] > > Hi, > > I have downloaded iotivity 1.3.1 version and downloaded boost framework as > well. using command terminal, i have generated .a files for different > architecture like armv7, armv7s, arm64, i386, x86_64 using following command > for release: > > scons TARGET_OS=ios TARGET_ARCH=armv7 TARGET_TRANSPORT=IP SECURED=1 > RELEASE=YES > > I got .a file which doesn't contain bitcode enabled. Using this .a files, > created FAT file and generated IoT ivity static framework. After integrating > this framework, i am able to run in simulator but it is giving error for > device as screenshot attached. > > from my understanding, the screenshot says .a files doesn't have bitcode. so > please guide me to add script in sconscript file to generate .a file with bit > code enabled. > > > > Also I have given a try in two Sconscript located in > > * Build_Common/iOS - env.AppendUnique(CCFLAGS= ['-fembed_bitcode'] ) > * Build_Common/darwin - env.AppendUnique(CCFLAGS= ['-arch', target_arch, > '-isysroot', sys_root, '-fembed_bitcode'] ) > > but got below error, kindly check the screenshot. > > My friend also tried above methods by following IoTivity group members > suggestion. Please find attached screenshot of discussion. > > Please guide me to fix this issue. > > "Pods/iotivity/iotivity.framework/iotivity(ocprovisioningmanager.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"
As I've said in other forums, xcode isn't used to drive the build since it's in scons, so the Xcode setting doesn't help. scons will call the compiler individually for the files (like xcodebuild would). The -fembed_bitcode flag is the best I've been able to find - since it doesn't work, the odds are it's getting passed to the wrong piece of the build, but without any expertise in this "bitcode" topic it's hard for me to go further. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9730): https://lists.iotivity.org/g/iotivity-dev/message/9730 Mute This Topic: https://lists.iotivity.org/mt/22499995/21656 Group Owner: iotivity-dev+ow...@lists.iotivity.org Unsubscribe: https://lists.iotivity.org/g/iotivity-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-