![](/img/trans.png)
[英]I Run my flutter project in android studio and try to use an IPhone 12 simulator but the Xcode builld fails everytime
[英]Why can't i run my xcode project in simulator in 12+?
正如標題所示,升級到 Xcode 12 后,我無法在 xcode 中運行我的(目標 c)項目。這是一個 Cocoapods 項目。
當我部署到我的手機時它工作正常,但在模擬器中由於某種原因我得到三個不同的錯誤。
它抱怨一個單獨的項目“缺少模塊文件”,我包括:模塊 map 文件 '...(path)/Build/Products/Debug-iphonesimulator/myProject/myProject.imagemap' not found
它抱怨預編譯 header: :0: 錯誤:無法發出預編譯 header '(path)/Build/Intermediates.noindex/PrecompiledHeaders/myProject-Bridging-Header-swift_2UGSYUUFRK85M-clang_18QKMU0TXX4JD.pch' 8(8088508808)8 橋接 8 iphone/myProject/myProject-Bridging-Header.h'
最后它抱怨 Not finding a bundle for a library that i use: error: Resource "(path)/Products/Debug-iphonesimulator/FCAlertView/FCAlertView.bundle" not found。 運行“pod install”以更新復制資源腳本。
我對 xcode 的內部工作原理不是很了解,所以如果有人有任何指示,我將不勝感激。
對於那些因為類似問題來到這里的人:
我的問題原來是在“項目、構建設置、用戶定義”中找到的“VALID_ARCHS”設置缺少在模擬器“x86_64”上運行所需的設置。
由於某種原因,它已被刪除。 一旦我添加它,它又起作用了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.