1.模擬器上運行正常,但是真機調試時報編譯鏈接錯誤 :ld: '/Users/wangqipeng/Desktop/iOS支付寶官方文檔/AlixPayDemo/libcrypto.a(bio_lib.o)' does not contain bitcode. You must rebuild it
1.模擬器上運行正常,但是真機調試時報編譯鏈接錯誤
:ld: '/Users/wangqipeng/Desktop/iOS支付寶官方文檔/AlixPayDemo/libcrypto.a(bio_lib.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)
解決方法:在Build Setting中查找bitcode,將Enable Bitcode改為NO就可以了
2.平時調試程式時,有時會報No matching provisioning profiles found 的警告,真機調試會報錯
解決方法:修改Bundle Identifier ,給當前的bundle id隨便添加幾個字元就行,但是真機調試過之後要改為原來的Bundle id,否則不可以連續運行的
3.ld: file not found: /Users/wangqipeng/Library/Developer/Xcode/DerivedData/UITest-fwixyyhkflydsbeztbylckujcsyo/Build/Products/Debug-iphonesimulator/UITest.app/UITest clang: error: linker command failed with exit code 1 (use -v to see invocation)
將項目考到新電腦中出現錯誤
改Build Setting中改一下項目名字就好了
原因,項目名不同造成的
Build Setting----》Product Name---