1.設(shè)置相對(duì)路徑##
要想設(shè)置相對(duì)路徑,必須要查看絕對(duì)路徑
2.如設(shè)置pch的相對(duì)路徑##
點(diǎn)擊pch文件,直接拖到工程中就會(huì)有絕對(duì)路徑生成,這樣就得到絕對(duì)路徑了,從工程的路徑開始,前面使用$(SRCROOT)代替,即為pch相對(duì)路徑
3.設(shè)置相對(duì)路徑##
在Xcode的target配置中,在Build Setting中找到Prefix Header,將修改后得到的相對(duì)路徑添加到其中,并將Precompile Prefix Header的值設(shè)置為YES。這樣pch相對(duì)路徑就設(shè)置成功了
4.cocopos使用常見錯(cuò)誤##
1.Could not automatically select an Xcode project. Specify one in your Podfile like so:xcodeproj 'path/to/Project.xcodeproj'
解決方法:這個(gè)就是在Podfile文件里指定下工程目錄就可以了
2.[!] Invalid Podfile
file: syntax error, unexpected end-of-input, expecting keyword_end.
解決方法:在Poddfile的末尾加end