CocoaPods libraries errors building for some iOS simulators

前端 未结 2 1582
南笙
南笙 2021-01-23 03:29

Short error:

file was built for archive which is not the architecture being linked (i386)

Expanded:
For some simulators, I receive these e

相关标签:
2条回答
  • 2021-01-23 04:17

    I found the solution.

    I removed the directory /Users/admin/Library/Developer/Xcode/DerivedData/myApp-ekwldvjyuxwkykbareyvvydbtero/Build (right click on the library of CocoaPods > Show in Finder, then find its parent directory) and rebuild all again. Xcode recreated all libraries which works right now. All build preferences are the same as default.

    0 讨论(0)
  • 2021-01-23 04:24

    I solved it by deleting the DerivedData directory.

    Steps:

    1. In Xcode, go to Menu barWindowProjects.

    2. In the Projects window, choose the project on the left.

    3. Click the Delete... button for Derived Data. When asked to confirm, click Delete.

    4. Rebuild the project.


    For Xcode 8, see this Q & A:
    How to delete derived data in Xcode 8?

    0 讨论(0)
提交回复
热议问题