Paytm integration iOS - linker command failed with exit code 1 (use -v to see invocation) error

末鹿安然 提交于 2019-12-25 12:45:22

问题


I tried to integrate PAYTM in my project. The following are the steps I have done for integration. I have dragged and dropped these files to my project:

libPaymentsSDK_v2.0.a,
PaymentsSDK.h,
PGMerchantConfiguration.h, PGOrder.h,
PGServerEnvironment.h,
PGTransactionViewController.h

Its working fine when I run in simulator but when I try to take build in Xcode by Product-Archive it shows error:

linker command failed with exit code 1 (use -v to see invocation) error

I have cleaned the derived data and tried. I have all the .m files imported correctly in Compile sources and tried, but still the same issue

How can I solve it?


回答1:


Issue solved. I have set Build Settings>Build Options> Enable Bitcode to NO




回答2:


Please add libz.tbd in binary Link Binary



来源:https://stackoverflow.com/questions/43492281/paytm-integration-ios-linker-command-failed-with-exit-code-1-use-v-to-see-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!