iOS支付宝集成时遇到的问题整理(1)

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---

posted @ 2016-02-14 17:06  Mr.pengge  阅读(723)  评论(0编辑  收藏  举报