Xcode10 自动联想失效

Build Settings -> User Header Search Paths
双击,填入 $(PODS_ROOT), 设置为recursive

Xcode10 不能联想头文件
在Xcode -> File菜单下找到 “WorkspaceSettings”或“ProjectSettings” 菜单 ->
单击后会弹出如下设置框
在“Build System”中选择“Legacy Build System”

苹果app链接

https://itunes.apple.com/cn/app/idxxxxxxxxxxx
id后面加上自己的appID

支持http请求

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>

An error was encountered while attempting to communicate with this device

给一个新ios手机安装应用的时候遇到一个报错:An error was encountered while attempting to communicate with this device. 当时很懵逼,看提示,“貌似”是手机的什么权限没有开,但是找遍了手机设置也没有相关的选项。
后来把数据线断开,重新插上就好了。
第一次遇到这个问题,感觉很神奇,幸好没有使用我的大招:关机重启!于是记录一下!!!

Prefix Header 添加

1、创建PCH文件
2、Targets -\> BuildSettings -\> Apple Clang-Language -\> Prefix Header 
3、添加PCH文件路径 项目名称/文件名.PCH

注意:将Precompile Prefix Header为YES,预编译后的pch文件会被缓存起来,可以提高编译速度

ARC支持非ARC类库

ARC支持非ARC:-fno-objc-arc
非ARC支持ARC:-fobjc-arc

unexpected duplicate task

出现这种问题主要是因为出现了重复。两种解决方式:
一、File -\> workspace settings,选择Legacy Build System。旧的build方式即可
二、如果不想改为旧的build方式的话,那就需要删除重复的文件路径。在Build Phases 里面进行搜索,并删除重复的。主要是copy bundle resource 里面出现了相同名称的文件。

Could not attach to pid :“xxx”
模拟器刚启动会产生这个问题,多启动几次项目就好了。
https://www.jianshu.com/p/1883c784298d
https://www.jianshu.com/p/85f7d5ec5edb