Xcode 8.2.1+无法构建:无效的位码签名 [英] Xcode 8.2.1+ Fails Building : Invalid bitcode signature

查看:60
本文介绍了Xcode 8.2.1+无法构建:无效的位码签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,在将Xcode从8.2.1更新到任何新版本之后,我无法构建/运行我的项目.这是我得到的错误.

So after updating my Xcode from 8.2.1 to any new version, I'm unable to build/run my project. This is the error that I'm getting..

Ld Smash_Anarchy.build/Deployment-iphoneos/Smash\ Anarchy.build/Objects-normal/arm64/Smash\ Anarchy normal arm64
cd /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Users/henrik/Desktop/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Users/henrik/Desktop/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Users/henrik/Desktop/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Users/henrik/Desktop/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk -L/Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS -F/Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS -filelist /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Smash_Anarchy.build/Deployment-iphoneos/Smash\ Anarchy.build/Objects-normal/arm64/Smash\ Anarchy.LinkFileList -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Smash_Anarchy.build/Deployment-iphoneos/Smash\ Anarchy.build/Objects-normal/arm64/Smash\ Anarchy_lto.o -Xlinker -final_output -Xlinker /Applications/Smash\ Anarchy.app/Smash\ Anarchy -fobjc-link-runtime -ObjC -framework SafariServices -weak_framework GLKit -weak_framework CoreBluetooth -weak_framework JavaScriptCore -weak_framework WebKit -licucore -weak_framework AddressBook -lsqlite3 -lc++ -weak_framework GoogleToolboxForMac -weak_framework FirebaseAnalytics -weak_framework FirebaseAuth -weak_framework FirebaseCore -weak_framework FirebaseCoreDiagnostics -weak_framework FirebaseCrash -weak_framework FirebaseDatabase -weak_framework FirebaseDynamicLinks -weak_framework FirebaseInstanceID -weak_framework FirebaseNanoPB -weak_framework GTMSessionFetcher -weak-lxml2 -weak-lz -weak_framework Accelerate -weak_framework Accounts -weak_framework AddressBookUI -weak_framework AdSupport -weak_framework AssetsLibrary -framework AudioToolbox -weak_framework CoreAudio -lGoogleAnalyticsServices -weak_framework CoreData -weak_framework CoreFoundation -weak_framework CoreImage -weak_framework CoreMIDI -framework Appodeal -weak_framework CoreMotion -weak_framework CoreTelephony -weak_framework CoreText -framework CoreVideo -weak_framework EventKit -weak_framework EventKitUI -weak_framework ExternalAccessory -weak_framework iAd -weak_framework ImageIO -weak_framework MediaToolbox -weak_framework MobileCoreServices -weak_framework NewsstandKit -framework OpenAL -weak_framework QuickLook -weak_framework Security -weak_framework Social -weak_framework StoreKit -weak_framework SystemConfiguration -weak_framework Twitter -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -weak_framework CoreLocation -weak_framework CoreMedia -framework Foundation -framework FirebaseRemoteConfig -weak_framework GameKit -framework MediaPlayer -weak_framework MessageUI -weak_framework OpenGLES -framework QuartzCore -framework UIKit /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/S3DClient_iOS.a -framework Protobuf /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Plugins/jpCloudEnvironment_iOS.a /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Plugins/jpEventQueue_iOS.a -Xlinker -dependency_info -Xlinker /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Smash_Anarchy.build/Deployment-iphoneos/Smash\ Anarchy.build/Objects-normal/arm64/Smash\ Anarchy_dependency_info.dat -o /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Smash_Anarchy.build/Deployment-iphoneos/Smash\ Anarchy.build/Objects-normal/arm64/Smash\ Anarchy

error: Invalid bitcode signature
clang: error: linker command failed with exit code 1 (use -v to see invocation)

任何想法如何摆脱这个错误?我的位码还没有打开.我尝试启用,禁用它,清除派生数据,清除项目,重新启动Xcode,将仅构建活动架构"设置为YES和NO.无济于事...我不使用Pod ... 知道如何找到此错误的原因吗? 谢谢!

Any idea how to get rid of this error? My bitcode isn't even on. I've tried enabling, disabling it, cleaning the derived data, cleaning project, restarting Xcode, setting the "Build Active Architecture Only" to YES, and NO.. nothing helped... I'm not using pod... Any idea how to find the reason of this error? Thanks!

推荐答案

尝试一下

将方案目标通用iOS设备更改为真实设备(例如您的iPhone)

Change scheme target Generic iOS device to real device (ex. your iPhone)

它在我的情况下有效,但我不知道为什么会这样做

It works in my case but I have no idea why it does

我在Xcode 9.0和某些框架上(包括自定义代码)

Im on Xcode 9.0 and with some frameworks(include custom code)

这篇关于Xcode 8.2.1+无法构建:无效的位码签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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