mac os 升級到10.11後,Xcode問題
這兩天心癢難耐,把自己的macbook pro升級到了 10.11,然後出了好多問題,總結一下!
一、關於Xcode
1.我的Xcode版本是6.2的,升級系統後,吖的選擇模擬器的框框不見了,鬱悶之極,網上查詢一翻,說將Xcode寬度拉大些就有了,我一試,果然可以!但是我的螢幕不夠大呀,如果這個,那每次碼程式碼的時候還得來回拖動Xcode,甚是不便,於是升級Xcode到7.1,接下來問題又來了!
2. Xcode貌似從7開始吧(版本不確定),安全機制改了,還得配置下專案的info.plist檔案,如下:
開啟plist後,新增 App Transport Security Settings 字典,鍵值 Allow Arbitrary Loads : YES
二、Reveal也不能正常使用了! (不確定是否是升級導致,很長一段時間沒有用了)
報錯如下圖:
Undefined symbols for architecture i386:
"_deflate", referenced from:
-[IBAHTTPJSONResponse initWithJSONString:compress:] in Reveal(IBAHTTPJSONResponse.o)
"_deflateEnd", referenced from:
-[IBAHTTPJSONResponse initWithJSONString:compress:] in Reveal(IBAHTTPJSONResponse.o)
"_deflateInit2_", referenced from:
-[IBAHTTPJSONResponse initWithJSONString:compress:] in Reveal(IBAHTTPJSONResponse.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解決方法:
新增 libz.tbd 即可!