adow/SecrecySwift

CommonCrypto link error, can't find arm64/armv7s architecture in iPhoneOS

Opened this issue · 0 comments

Xcode 9.3, Swift 4项目, 引入此项目,按readme中的直接部署源码的方式已无法正常运行。
解决办法:
1.删除CommonCrypto文件夹,在项目 Targets 的 Build Settings 中 Import Paths 中删除 CommonCrypto, 在 Library Search Path 中删除 /usr/lib/system
2.在自己项目的xxx-Bridging-Header.h文件中,#import <CommonCrypto/CommonCrypto.h>
3.删除此项目中出现的import CommonCrypto,成功在真机上运行。

Xcode 9.3, Swift 4, following the readme file's "Add Source Code to your project", project can't run in iPhoneOS.
Solution:

  1. Delete CommonCrypto folder. On your application targets Build Settings, Import Paths setting, delete CommonCrypto. And delete /usr/lib/system/ on Library Search Paths.
  2. Add "#import <CommonCrypto/CommonCrypto.h>" in your project's xxx-Bridging-Header.h file.
    3.Find "import CommonCrypto" in this project and delete it. Then you can run your project in iPhoneOS successfully.