汇总Xcode使用中几个小问题

一、[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>  .

转载于:https://www.cnblogs.com/zsw-1993/archive/2013/05/07/4880117.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值