Xcode 隨手記

開(kāi)發(fā)證書刪除

~/Library/MobileDevice/Provisioning Profiles
刪除里面的文件,重新導(dǎo)入XX.mobileprovision

Pod 集成錯(cuò)誤
Use the $(inherited) flag, or
Remove the build settings from the target.

[!] The xxx [Debug] target overrides the HEADER_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-xxx/Pods-xxx.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or
- Remove the build settings from the target.

[!] The xxx[Debug] target overrides the LIBRARY_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-xxx/Pods-xxx.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or
- Remove the build settings from the target.

[!] The xxx[Release] target overrides the HEADER_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-xxx/Pods-xxx.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or
- Remove the build settings from the target.

[!] The xxx[Release] target overrides the LIBRARY_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-xxx/Pods-xxx.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or
- Remove the build settings from the target.

解決方法

Build Setting --> HEADER_SEARCH_PATHS--> 添加$(inherited)
Build Setting --> LIBRARY_SEARCH_PATHS--> 添加$(inherited)

xib storyboard 警告
Xcode Storyboard warning: Constraint referencing items turned off in current configuration. Turn off this constraint in the current configuration

This warning can be annoying and happens as of Xcode 6.1.1. The main problem is that you can not easily find the referenced constraint by clicking on the warning. I guess this is a bug and will get fixed sooner or later.
However, in the meantime you can use this little workaround:
Step 1: Detect annoying warning ??


Annoying warning

Step 2: Right/Ctrl-Click on warning, select Reveal in Log
??


enter image description here

Step 3: Admire the beauty of the following log snippet:
... snip...
/Devel/MyCrippledAppNG/MyCrippledApp/Main_iPad.storyboard:Dlb-cb-nWC: warning: Constraint referencing items turned off in current configuration. Turn off this constraint in the current configuration.
/Devel/MyCrippledAppNG/MyCrippledApp/Main_iPad.storyboard:6Ze-mO-v5N: warning: Constraint referencing items turned off in current configuration. Turn off this constraint in the current configuration.
/Devel/MyCrippledAppNG/MyCrippledApp/Main_iPad.storyboard:9av-xw-u1o: warning: Constraint referencing items turned off in current configuration. Turn off this constraint in the current configuration.
/Devel/MyCrippledAppNG/MyCrippledApp/Main_iPad.storyboard:RPt-Uf-vaZ: warning: Constraint referencing items turned off in current configuration. Turn off this constraint in the current configuration.
/Devel/MyCrippledAppNG/MyCrippledApp/Main_iPad.storyboard:Rnc-4M-7jV: warning: Constraint referencing items turned off in current configuration. Turn off this constraint in the current configuration.
/Devel/MyCrippledAppNG/MyCrippledApp/Main_iPad.storyboard:epJ-D9-KEF: warning: Constraint referencing items turned off in current configuration. Turn off this constraint in the current configuration.
/Devel/MyCrippledAppNG/MyCrippledApp/Main_iPad.storyboard:4HC-Gu-01w: warning: Constraint referencing items turned off in current configuration. Turn off this constraint in the current configuration.... snip ...

Hmmm... What's this...?

interesting

Step 4: Let's toss that into the project search bar... ??
search

?? Yep, you guessed right. Click it.
Step 5: ?? OMG! Enjoy a few extra minutes of productivity until Apple fixes this annoying bug. ??
wheeee

For 2016...
If you can't get it with 'Reveal in Log', show the Report Navigator. (That is the rightmost tab on the leftmost column.) Delve into the build results there. That will show the build log, including the constraint ID. courtesy buildsucceeded


enter image description here

鼠標(biāo)速度調(diào)整

可以用終端命令來(lái)調(diào)整:
步驟: 1,打開(kāi)終端 2,輸入命令查看:defaults read -g com.apple.mouse.scaling 就可以看到當(dāng)前的鼠標(biāo)速度 3,輸入命令修改:defaults write -g com.apple.mouse.scaling 7.5 就可以修改鼠標(biāo)速度為 7.5 (數(shù)值你可以調(diào) 7---9,自己感覺(jué)速度,10 以上太快了,不建議) 4,重啟電腦 OK 享受MM完美速度

插件工具

1.ESJsonFormat-Xcode json轉(zhuǎn)模型文件 oc版本
2.VVDocumenter-Xcode 快速注釋
3.JSPatchX xcode補(bǔ)齊jspach用
4.RTImageAssets 圖片切割
5.FuzzyAutocompletePlugin代碼提示
6.ClangFormat-的Xcode代碼對(duì)齊
7.FastCoding-Xcode-Plugin快速定義
8.AutoHighlightSymbol
高亮選中

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,005評(píng)論 0 23
  • 除了每天在辦公室上班,我也接觸到有幾種職業(yè)的可能性,古典老師羅列了幾類,我也能在身邊找到相對(duì)應(yīng)的認(rèn)識(shí)的人: 一、在...
    李泳梅Bella閱讀 197評(píng)論 0 0
  • 世上之事,豈能盡如人意,一切只要保持好的狀態(tài),面對(duì)所有即將預(yù)測(cè)不到的事情。 請(qǐng)相信,一切都是最好的安排!
    b3801116e7d2閱讀 301評(píng)論 0 1
  • 親愛(ài)的猴哥,見(jiàn)信好: 早上的信開(kāi)了個(gè)頭,寫的都是罵你的話,原諒我總是突如其來(lái)的情緒,我還沒(méi)法好好控制它,可能我的情...
    打卡的安琪閱讀 162評(píng)論 0 1
  • 坐在辦公室一隅,難得天氣不錯(cuò),算來(lái)告別校園也快一年了,總覺(jué)得要寫點(diǎn)東西,就當(dāng)為了幾年后讀起來(lái),還能想起今天的自己。...
    霧里人閱讀 874評(píng)論 10 10

友情鏈接更多精彩內(nèi)容