Xcode 随手记

作者: 小布走慢点 | 来源:发表于2016-06-17 14:24 被阅读243次

开发证书删除

~/Library/MobileDevice/Provisioning Profiles
删除里面的文件,重新导入XX.mobileprovision

Pod 集成错误
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
enter image description here

鼠标速度调整

可以用终端命令来调整:
步骤: 1,打开终端 2,输入命令查看:defaults read -g com.apple.mouse.scaling 就可以看到当前的鼠标速度 3,输入命令修改:defaults write -g com.apple.mouse.scaling 7.5 就可以修改鼠标速度为 7.5 (数值你可以调 7---9,自己感觉速度,10 以上太快了,不建议) 4,重启电脑 OK 享受MM完美速度

插件工具

1.ESJsonFormat-Xcode json转模型文件 oc版本
2.VVDocumenter-Xcode 快速注释
3.JSPatchX xcode补齐jspach用
4.RTImageAssets 图片切割
5.FuzzyAutocompletePlugin代码提示
6.ClangFormat-的Xcode代码对齐
7.FastCoding-Xcode-Plugin快速定义
8.AutoHighlightSymbol
高亮选中

相关文章

  • Xcode 随手记

    开发证书删除 ~/Library/MobileDevice/Provisioning Profiles删除里面的文...

  • 随拍,手记。

  • 随拍随想随手记

    花都是香的吗?或许这株花就得了狐臭。 物竞天择竞的也只是异类,而人却是会兄弟阋墙,手足相残的。 孔雀园...

  • 随笔

    我影随我形, 我手记我心。 天地入穹庐, 谁人随我心。 哈哈哈哈哈…… 长空踏马去, 一路歌相随。

  • 采访手记:茶女孩——随忆

    笔名:随忆 职业:茶文案 擅长领域:茶文化,公众号运营,烘培,组织活动 最喜欢的一句话:失之东隅,收之桑榆 最喜欢...

  • 随性手记(第5天)

    2018-2019年NBA季后赛激战正酣,东西区总共16支球队,抱着必胜的信心朝着NBA最高荣誉-总冠军冲击...

  • 随性手记(第1天)

    每天必做的事听歌,鼠标点击网易云的logo,正面网易云精致个性的一页Banner 映入眼帘,用红黑色的渐变背景...

  • 随性手记(第2天)

    时隔不知道多少年,只记得初中班主任规定每天日记的习惯,到19年4月1号,重新开始记录自己的生活.年少时不耐烦地...

  • 随性手记(第4天)

    看完了【解忧杂货铺】,刚开始以为的5个独立小故事,从90年代到20世纪初每章开头出现的各种人物,和出现的独立的...

  • 随性手记(第3天)

    刚读完【解忧杂货店】第二章,有些感情需要抒发,主角克郎大学辍学,追求音乐梦想;在这个过程中:练习吉他、参加...

网友评论

    本文标题:Xcode 随手记

    本文链接:https://www.haomeiwen.com/subject/ktjvdttx.html