Xcode 7和ENABLE_BITCODE = YES设置不起作用 [英] Xcode 7 and ENABLE_BITCODE=YES setting does not work

查看:387
本文介绍了Xcode 7和ENABLE_BITCODE = YES设置不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我关注了Xcode中新的ENABLE_BITCODE设置的多个线程,也做了很多尝试(承认我不是xcode专业人士),但仍然无法编译该项目以在我的测试电话上使用吗? / p>

我的应用在模拟器上运行良好,但无法将其部署到iPhone上进行测试。在后一个版本中,我刚刚安装了iOS 9 beta。



现在,这是我收到的错误消息。看来该设置不会影响PARSE.com lib,那是我项目的一部分吗? 如何将我的项目部署到手机上?感谢您的任何建议。

  Ld /用户/ xxxxxx /库/开发人员/ Xcode / DerivedData / graffiti- bnmizxueojwiqcbbnsvilljhosrw / Build / Products / Debug-iphoneos / Pods / Parse.framework / Parse normal armv7 
cd / Users / xxxxxx / Documents / DigitalTempusDev / graffiti
出口IPHONEOS_DEPLOYMENT_TARGET = 8.0
出口PATH = / Applications / Xcode-beta.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin:/Applications/Xcode-beta.app/目录/开发人员/ usr / bin:/ usr / local / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/ XcodeDefault.xctoolchain / usr / bin / clang -arch armv7 -dynamiclib -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L / Users / xxxxxx /图书馆/开发人员/ Xcode / DerivedData / graffiti-bnmizxueojwiqcbbnsvilljhosrw / Build /产品/ Debug-iphoneos / Pods -L / Users / xxxxxx / Documents / D igitalTempusDev / graffiti / Pods / Parse -F / Users / xxxxxx / Library / Developer / Xcode / DerivedData / graffiti-bnmizxueojwiqcbbnsvilljhosrw / Build / Products / Debug-iphoneos / Pods -filelist / Users / xxxxxx / Library / Derived / DeveloperX涂鸦-bnmizxueojwiqcbbnsvilljhosrw / Build / Intermediates / Pods.build / Debug-iphoneos / Pods-Parse.build / Objects-normal / armv7 / Parse.LinkFileList -install_name @ rpath / Parse.framework / Parse -Xlinker -rpath -Xlinker / executable__框架-Xlinker -rpath -Xlinker @ loader_path / Frameworks -miphoneos-version-min = 8.0 -dead_strip -fembed-bitcode-marker -ObjC -lParseLib -lz -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework QuartzCore -framework安全性-framework StoreKit -framework SystemConfiguration -weak_framework帐户-weak_framework Social -ObjC -fobjc-arc -fobjc-link-runtime -framework AudioToolbox -framework螺栓-framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework Foundation -framew Ork QuartzCore-框架安全性-框架StoreKit-框架系统配置-single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker / Users / xxxxxx / Library / Developer / Xcode / DerivedData / graffiti-bnmizxueojwiqcbbnsvilljhosrw。 Debug-iphoneos / Pods-Parse.build / Objects-normal / armv7 / Parse_dependency_info.dat -o / Users / xxxxxx / Library / Developer / Xcode / DerivedData / graffiti-bnmizxueojwiqcbbnsvilljhosrw / Build / Products / Debug-iphoneos / Pods / Pards。 framework / Parse

---
ld:警告:-weak_framework与-bitcode_bundle(Xcode设置ENABLE_BITCODE = YES)一起使用时,被视为-framework。基于标题
ld中的可用性标记,仍然可能会发生弱链接:警告:与-bitcode_bundle(Xcode设置ENABLE_BITCODE = YES)一起使用时,-weak_framework被视为-framework。根据标题
ld中的可用性标记,仍然可能会发生弱链接: / Users / xxxxxx / Documents / DigitalTempusDev / graffiti / Pods / Parse / libParseLib.a(PFSQLiteDatabase.o)不包含位码。您必须在启用位码(Xcode设置ENABLE_BITCODE)的情况下重建它,从供应商处获取更新的库,或禁用此目标的位码。对于体系结构armv7
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)


解决方案

您确定已选择启用位代码针对您使用的构建配置(例如 DEBUG )?您可以在project-> target-> build settings-> search enable bitcode -> set NO 中进行检查 DEBUG (记住要记住在测试发布之前尝试更新库,可能已经包含位代码了)。然后编辑方案->运行->检查是否具有 DEBUG 配置atm。




I have followed several threads around the new ENABLE_BITCODE setting in Xcode, have also tried as much as I can (admitted I'm not a xcode pro) but still cannot get the project to compile for use on my test phone?

My app runs fine on the simulator but I cannot deploy it onto my iPhone for testing. On latter one I just installed iOS 9 beta.

Now, here is the error message I receive. It appears the setting does not impact the PARSE.com lib, that is part of my project? How can I get my project to deploy onto my phone? Thanks for any advice.

    Ld /Users/xxxxxx/Library/Developer/Xcode/DerivedData/graffiti-  bnmizxueojwiqcbbnsvilljhosrw/Build/Products/Debug-iphoneos/Pods/Parse.framework/Parse normal armv7
cd /Users/xxxxxx/Documents/DigitalTempusDev/graffiti/Pods
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -dynamiclib -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/xxxxxx/Library/Developer/Xcode/DerivedData/graffiti-bnmizxueojwiqcbbnsvilljhosrw/Build/Products/Debug-iphoneos/Pods -L/Users/xxxxxx/Documents/DigitalTempusDev/graffiti/Pods/Parse -F/Users/xxxxxx/Library/Developer/Xcode/DerivedData/graffiti-bnmizxueojwiqcbbnsvilljhosrw/Build/Products/Debug-iphoneos/Pods -filelist /Users/xxxxxx/Library/Developer/Xcode/DerivedData/graffiti-bnmizxueojwiqcbbnsvilljhosrw/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Parse.build/Objects-normal/armv7/Parse.LinkFileList -install_name @rpath/Parse.framework/Parse -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -fembed-bitcode-marker -ObjC -lParseLib -lz -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -weak_framework Accounts -weak_framework Social -ObjC -fobjc-arc -fobjc-link-runtime -framework AudioToolbox -framework Bolts -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework Foundation -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/xxxxxx/Library/Developer/Xcode/DerivedData/graffiti-bnmizxueojwiqcbbnsvilljhosrw/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Parse.build/Objects-normal/armv7/Parse_dependency_info.dat -o /Users/xxxxxx/Library/Developer/Xcode/DerivedData/graffiti-bnmizxueojwiqcbbnsvilljhosrw/Build/Products/Debug-iphoneos/Pods/Parse.framework/Parse

---
ld: warning: -weak_framework is treated as -framework when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES). Weak linking may still happen based on availability mark-up in headers
ld: warning: -weak_framework is treated as -framework when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES). Weak linking may still happen based on availability mark-up in headers
ld: '/Users/xxxxxx/Documents/DigitalTempusDev/graffiti/Pods/Parse/libParseLib.a(PFSQLiteDatabase.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 armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方案

Are you sure you've selected Enable Bitcode to NO against build config you're using (eg DEBUG)? You can check it out in project->target->build settings-> search enable bitcode->set NO in DEBUG (good to remember to try to update libs before test release, maybe it'll contain bitcode already). Then Edit Scheme -> Run -> check if you have DEBUG config atm.

这篇关于Xcode 7和ENABLE_BITCODE = YES设置不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆