国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Xcode 升級后編譯以前的項目報錯問題

這篇具有很好參考價值的文章主要介紹了Xcode 升級后編譯以前的項目報錯問題。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

背景

某天我發(fā)神經(jīng)升級了Xcode,然后編譯以前的Objective-C項目時出現(xiàn)以下錯誤:

clang: error: SDK does not contain ‘libarclite’ at the path ‘/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a’; try increasing the minimum deployment target

sdk does not contain 'libarclite' at the path '/applications/xcode.app/conte,objective-c,遇到的問題,xcode,macos,ide

分析原因

錯誤信息里面有是因為找不到 libarclite_macosx.a 這個文件,在網(wǎng)上搜了一些,使用為Xcode升級后編譯的項目不再兼容更老的系統(tǒng)版本,所以這個文件被刪了。

解決方法

解決方法有兩種,一是在就版本的Xcode對應目錄下找到 libarclite_macosx.a 文件放到新版本的錯誤提示目錄下,二是把項目最低支持的系統(tǒng)版本設(shè)置高一點。

推薦第一種方法,如果公司要求兼容更老的系統(tǒng)版本也只能選第一種。

有些人可能找不到舊版本的文件,下面鏈接是在舊版Xcode找到的文件(下載解壓按照下面方法操作)

arc文件下載地址

https://download.csdn.net/download/yoyo_u/88560495

解決方法一

1.根據(jù)錯誤的提示路徑,在公司其它舊版本Xcode找到 arc 文件夾

sdk does not contain 'libarclite' at the path '/applications/xcode.app/conte,objective-c,遇到的問題,xcode,macos,ide

里面有一些文件,其中包括 libarclite_macosx.a 文件。

2.拷貝整個 arc 目錄到新Xcode對應目錄下

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/

使用在訪達按下 command+shirft+G 快捷鍵,輸入上面的地址(一般情況下是的,需要根據(jù)你的報錯提示路徑看看),進入到對應目錄,然后把 arc 文件夾放到這個目錄下。

sdk does not contain 'libarclite' at the path '/applications/xcode.app/conte,objective-c,遇到的問題,xcode,macos,ide

再次編譯就可以了

解決方法二

在項目的 TARGETS 找到設(shè)置最小兼容系統(tǒng)版本的地方

sdk does not contain 'libarclite' at the path '/applications/xcode.app/conte,objective-c,遇到的問題,xcode,macos,ide

選擇下拉框里的系統(tǒng)版本都是支持的,我這10.10是更老的版本,不支持,你們可以選擇一個下拉框里的。

可能還會遇到的其它問題

不能運行,出現(xiàn)

A build only device cannot be used to run this target.

sdk does not contain 'libarclite' at the path '/applications/xcode.app/conte,objective-c,遇到的問題,xcode,macos,ide

解決方法

1.在Xcode上面選擇 Product -> Destination -> Destination Architectures -> Show Both

sdk does not contain 'libarclite' at the path '/applications/xcode.app/conte,objective-c,遇到的問題,xcode,macos,ide

2.還是剛剛那個位置,會出現(xiàn)一個電腦的圖標,選擇就電腦圖標的選項

sdk does not contain 'libarclite' at the path '/applications/xcode.app/conte,objective-c,遇到的問題,xcode,macos,ide文章來源地址http://www.zghlxwxcb.cn/news/detail-819868.html

到了這里,關(guān)于Xcode 升級后編譯以前的項目報錯問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務器費用

相關(guān)文章

  • XCode升級后QT無法編譯的問題

    原因是SDK的版本變了,Qt配置的版本要修改。 解決辦法如下: 1.找到 /Users/*/Qt/5.15.2/clang_64/mkspecsqdevice.pri 這個文件打開編輯, 在文件末尾追加一句 !host_build:QMAKE_MAC_SDK=macosx13.1 至于這個版本號13.1是怎么來的呢? /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDK

    2024年02月14日
    瀏覽(20)
  • xcode SDK does not contain ‘libarclite‘

    xcode SDK does not contain ‘libarclite‘

    解決方法 iOS13以上

    2024年02月03日
    瀏覽(26)
  • 升級Xcode 14.3項目報錯PhaseScriptExecution failed with a nonzero exit code

    升級Xcode 14.3項目報錯PhaseScriptExecution failed with a nonzero exit code

    經(jīng)過各種折騰之后,發(fā)現(xiàn)是CocoaPods的問題,解決方案如下: 全局搜索 將其替換為

    2024年02月04日
    瀏覽(25)
  • SDK does not contain ‘libarclite‘ at the path ‘/Applications/Xcode.app/Contents/Developer/Toolchains

    升級到Xcode 15運行項目報錯,報錯信息如下: SDK does not contain \\\'libarclite\\\' at the path \\\'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a\\\'; try increasing the minimum deployment target 低版本也會有這個錯誤,應該是依賴包少了點東西。 第一步: 下載

    2024年03月11日
    瀏覽(24)
  • iOS問題記錄 - Xcode 14.3版本打包項目報錯

    iOS問題記錄 - Xcode 14.3版本打包項目報錯

    前幾天升級Xcode到14.3版本,運行項目報錯,于是寫了iOS問題記錄 - Xcode 14.3版本運行項目報錯這篇文章。沒想到除了運行項目有問題,打包項目也有問題。 macOS: 13.3 Xcode: 14.3 CocoaPods: 1.12.0 [ Xcode菜單欄 ] - [ Product ] - [ Archive ],進行打包操作。執(zhí)行到 Run custom shell script \\\'[CP] Embed

    2023年04月16日
    瀏覽(27)
  • iOS問題記錄 - Xcode 14.3版本運行項目報錯

    iOS問題記錄 - Xcode 14.3版本運行項目報錯

    看到Xcode有新版本,沒忍住點了升級,然后問題來了。 2023/06/24更新:關(guān)于Xcode 14.3版本打出來的包在iOS 13版本報錯的問題,經(jīng)過iOS 13.7版本真機實測,這個問題在Xcode 14.3.1版本已經(jīng)修復,建議升級。Xcode 14.3.1的發(fā)布說明也提及了這個問題的修復。 2023/04/23更新:關(guān)于Xcode 14.3版本

    2023年04月09日
    瀏覽(27)
  • Xcode升級導致關(guān)聯(lián)庫報錯

    Xcode升級導致關(guān)聯(lián)庫報錯

    想辦法找到對應的庫 然后到 Build Phases -- LinkBinary With Libraries中點擊+,選擇對應的framework即可,就像我工程的報錯 Undefined symbol: _OBJC_CLASS_$_ADClient _OBJC_CLASS_$_ASIdentifierManager 缺失的庫是AdSupport.framework 添加后再次編譯即可通過 下面是Sqlite庫和Zlib庫的缺失最新的庫導致的,一樣添

    2024年02月14日
    瀏覽(23)
  • 升級xcode15 報錯Error (Xcode): Cycle inside Runner

    升級xcode15 報錯Error (Xcode): Cycle inside Runner

    升級xcode15后報錯 Could not build the precompiled application for the device. Error (Xcode): Cycle inside Runner; building could produce unreliable results. This usually can be resolved by moving the shell script phase \\\'Thin Binary\\\' so that it runs before the build phase that depends on its outputs. 解決方式 在xcode中找到 Runner 中的 Build Pha

    2024年04月16日
    瀏覽(19)
  • Xcode 14.3升級后archive報錯處理

    sent 29 bytes received 20 bytes 98.00 bytes/sectotal size is 0 speedup is 0.00rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]Command PhaseScriptExecution failed with a nonzero exit code 用文本打開

    2024年02月12日
    瀏覽(19)
  • Android關(guān)于接入SDK所用jdk版本比項目高的報錯問題

    Android關(guān)于接入SDK所用jdk版本比項目高的報錯問題

    What went wrong: A problem occurred evaluating project ‘:app’. java.lang.UnsupportedClassVersionError: com/google/firebase/perfugin/FirebasePerfPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 解決辦法如下 在Android Studi

    2024年02月11日
    瀏覽(17)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包