一、警告: Multiple build commands for output file /xxx
xcode中 有时候会报一个警告:
[WARN]Warning: Multiple build commands for output file /xxx
要解决这个问题很简单:
1.选择你的工程
2.选择target
3.点击 Build Phases
4.展开Copy Bundle Resources
5.删除里面的刚才提示警告的文件,一般为红色的名字的文件
二、No value was provided for the parameter ‘appIdName’ when provisioning
Xcode 自动提交certificate requests的时候,需要寻找一个“Wildcard” 的app Id,如果你丢了这个(一般是自动创建的),那么xcode的自动请求就会失败。解决起来也很简单。
1) “Revoke” any existing certificates you might have from within the developer portal(把所有的certificates都Revoke一下)
2) Create a new “App Id”; title it “Wildcard”; and enter only ” * ” (without any spaces or quotes) as the suffix.(创建一个名为Wildcard的app id,suffix敲入*。关键步骤)
3) Try the automated certificate request from within Xcode again, and it should now work(在xcode上再来一次)。
三、如何关闭Xcode批量替换时的snapshot?
File->Project Settings, and then click on the ‘Snapshots’ tab: you want to uncheck the “Create snapshot of project before mass-editing operations” box.
四、inhouse账号和adhoc账号签名重名会非常麻烦。
如果遇到这个问题建议inhouse包和adhoc的包在不同的机器上打。
五、警告:No previous prototype for function “xxx”。
1.方法上加修饰符static
2.或者Project-Info -> TARGETS ->Build Settings -> LLVM GCC4.2 – Warnings组 -> Missing Function Prototypes Yes->No
六、警告:Declaration of ‘struct sockaddr_in’ will not be visible outside of this function
Reachability.h中最前面添加头文件:#import <netinet/in.h>
七 警告:Instance method '-renderInContext:' not found
解决办法:
#import <QuartzCore/QuartzCore.h>
已经用到的标为红色