Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

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

@pilgrim1385

Description

@pilgrim1385

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions