因爲搞IOS離職了,不得不接手過來搞,之前xcode運行 沒有問題,後來升級了xcode,打開工程時 ,突然報了The folder “.xcassets” doesn’t exist when opening xCode project
問題描述:
***/**/BootPage.xcassets:1:1: failed to read asset tags: unexpected error generating result tags
用上面描述 ,沒有搜索到解決辦法
點擊 工程名 進入 general 報 The folder “BootPage.xcassets” doesn’t exist when opening xCode project
打開xcode右側工程目錄,發現 並沒有 BootPage.xcassets”
但在真實目錄下是存在的
幾經模索解決辦法如下
BootPage.xcassets 剪切到其他目錄
關閉xcode ,打開 工程目錄,找到****.xcodeproj 右鍵顯示包內容 將project.pbxproj 備份到其他地方
打開編輯 project.pbxproj
找到 BootPage.xcassets 相關的詳情 ,然後全部刪除,
保存後 得新打開工程 ,,然後新建BootPage.xcassets
現將之前備份的 BootPage.xcassets 覆蓋回來,問題解決
這是我的解決辦法,請參考,如果不行,就將之前還原回來