問題描述:
新工程中需要集成支付寶功能,於是咱就把支付寶的庫給集成了進入然后就出現了下面這種錯誤了說,錯誤信息如下:
Undefined symbols for architecture armv7: "CreateRSADataVerifier(NSString*)", referenced from: -[AppDelegate parseURL:application:] in AppDelegate.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
問題原因:
我的支付功能是寫在Appdelegate.m里面給全局調用的,而該文件在前面集成百度地圖的時候已經把后綴名改為Appdelegate.mm樣式的了0.。0,我在該文件中調用了調用了DataSigner.m里面的一個方法,就此錯誤了=.=
ps.我的compile sources as 是設置為according to file type。(這個我沒改過,默認的)
我的解決:
把DataSigner.m也改成DataSigner.mm后綴,好吧就是這樣 0.。0
