今天使用xcode编译工程发现一个问题,这里记录一下防止忘记 xcode报错: Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 解决方案: 主工程的taget中BuildPhase中第二条中重新添加对应的文件即可…
这里有两种情况:第一种是某xxx.m文件不存在或路径不对,而且里面有5.1什么的解决方法如下:在Build Phases-->Complie Sources中找到有两个xxx.m文件,一个正常,一个标红了xxx.m,只要把标红的丢失文件删除掉就行了.第二种是,里面有4.1什么的解决方法如下:在Build Settings 中,将Apple LLVM compiler 4.1 - Language 中的c++Standard Library 修改为 libstdc++(GNU C++ standa…
编译或者运行APP的时候,老是报这个错误:Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 1 解决方法如下:…
网上找了一大堆,没有解决的办法 ,主要是iOS10的适配问题,info.plist里没有加对. 访问相册,我只加了 <!-- 相册 --> <key>NSPhotoLibraryUsageDescription</key> <string>App需要您的同意,才能访问相册</string> 然后运行程序就报错了 Class PLBuildVersion is implemented in both /Applications/Xcode.app/…
-> git xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xc…
类似这样的错误: fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h' has been modified since the precompiled h…
背景 mac下卸载了xcode,使用git等命令时就提示错误.invalid active path(Applications/Xcode.app/Contents/Developer),这种情况可以通过xcode-select --switch指定一个xcode安装路径,如果不想安装xcode,那么可以通过重置系统默认开发工具路径. 可以通过xcode-select命令来重置系统默认的CommandLineTools路径,如下 sudo xcode-select -r xcode-select…
1,Xcode8  duplicate symbols 在Build Setting里面 NO Common Blocks 设置为NO,就解决问题了. 2,昨晚升级iOS9.2之后.今天一来真机调试就报错: Could not find Developer Disk Image 解决方法: 下载   DeveloperDiskImage_ios9.2   镜像 解压后将其放到下面目录下就可以了:/Applications/Xcode7.0.app/Contents/Developer/Platf…
1, arc机制中调用非arc文件. Xcode——>Project->Build Phases,将需要非arc文件更改为:"-fno-objc-arc"   ,该参数可以启用手工管理引用计数的模式. http://www.cocoachina.com/bbs/read.php?tid=153926 二,限制只能竖屏展示 修改info.plist ,找到"Supported interface orientations" 设置item项为Portrait…