汇总Xcode使用中几个小问题
2013-05-07 16:48
155 查看
一、[WARN]Warning: 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的包在不同的机器上打。
五、warning: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> .
相关文章推荐
- 汇总Xcode使用中几个小问题
- 汇总Xcode使用中几个小问题
- 【汇总】iOS开发及Xcode使用中遇到的一些报错问题汇总
- 【汇总】iOS开发及Xcode使用中遇到的一些报错问题汇总
- 几个Office使用中的小问题解决方法汇总
- 使用 linux的几个需要注意的问题(之二)
- eclipse+ADT使用第三方静态库及COCOS2d问题汇总
- vue使用遇到问题汇总
- BugFree 安装和使用常见问题汇总
- 使用CXF时因缺少对应jar包而报错问题汇总
- iphone 开发中使用zbar时遇到的几个典型问题解决方法。
- 使用sqlldr工具中遇到的几个问题
- 在Android JNI环境下使用C++的几个问题与解决
- idea 使用技巧及问题汇总
- 使用GDI+时需要注意的几个问题
- 使用CocoaPods过程中的几个问题
- iOS开发-Xcode使用技巧汇总(持续更新)
- 使用C语言遇到的几个小问题
- Vue使用中遇到问题汇总(三)
- log explorer使用的几个问题