CocoaPods libraries errors building for some iOS simulators

前端 未结 2 1590
南笙
南笙 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: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?

提交回复
热议问题