Could not build module UIKit

前端 未结 24 1422
予麋鹿
予麋鹿 2020-12-17 07:59

Suddenly it stops building application in device. In simulator its working but when I connect the device and try to run it in device it gives me an error:

24条回答
  •  被撕碎了的回忆
    2020-12-17 08:25

    A full clean + deleting the derived data worked for me.

    Be sure to fix any code that may be broken because UIKit cannot be installed, before the clean and build.

    So, for example, if you are trying to reference UICollectionViewController, and need UIKit to reference it, comment out the code that is using UICollectionViewController, comment out the import for UIKit.

    Then clean, build. Now uncomment import UIKIt, build. NOW uncomment UICollectionViewController code, build again.

提交回复
热议问题