iOS錯誤總結。。。。。持續更新中

2021-09-30 12:10:27 字數 1223 閱讀 4825

1.clang: error: linker command failed with exit code 1 (use -v to see invocation)

工程裡面不要有相同的全域性變數:例如int number=0;在另乙個頁面也是。

2.no architectures to compile for(only_active_arch=yes

這種錯誤    修改building settings下 build active architecture only 為no即可。

3.dyld: symbol not found: _objc_setproperty_nonatomic  

_objc_setproperty_nonatomic是ios6.0的新方法,三方庫設定了deployment target 為6.0就會呼叫這2個新增的方法,為ios5中沒有,我們的專案是支援ios5的。所以報錯。把lib的target設定為5.0之後,沒有這個錯誤了

在buildphases 下新增coretelephoney.framework即可

這個問題,花費了我2天的時間才找到,總以為是自製的靜態庫的問題。

no provisioning profile at path '/users/user/library/mobiledevice/provisioning profiles/***xx.***

當報這種錯誤時,工程證書不正確,修改build setting下 的provisioning profile為正確的的專案證書即可

malformed or corrupted ast file: ios***,類似的錯誤時,時xcode編譯器的問題,清理下/library/developer/xcode/deriveddata下的資料

即可。

4.錯誤:ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture i386

原因:不支援低版本的系統如3.0

解決:deployment target was 3.0. changing it to 4.3 fixed it.

Gitlab總結(持續更新中)

1.git github gitlab三者的關係。git 開源的分布式版本控制軟體。2005年,linux爸爸linux為了更方便地管理linux核心,捎帶手做了這個玩意。github 基於git的遠端檔案託管平台。2008年,不知道誰根據爸爸的開源專案git搗鼓出來個github。解決了所有內容以...

iOS開發問題總結(持續更新 )

1 xcode7和ios9下uiwebview不能載入網頁的解決方法 3 property中定義nsstring什麼時候用copy什麼時候用strong 4 提示錯誤 expected a type 5 xmpp開啟服務端的時候提示沒有twisted 解決辦法 沒有許可權需要加上sudo 6 報錯 ...

總結持續更新

1 從屬關係的區別 link屬於xhtml標籤,而 import是css提供的語法規則,link除了載入css,還可以定義rss,定義rel連線屬性等,import就只能載入css。2 載入順序的區別 頁面載入時,link會同時被載入,而 import引用的css會等頁面被載入完後再載入。3 相容性...