Xcode7 总结

来源:互联网 发布:Windows匿名用户 编辑:程序博客网 时间:2024/05/17 08:28

更新

主要还是支持ios9, 其他功能也没有啥改变的

  • 启动画面由xib变为Storyboard (纯游戏开发无用技能)
  • 真机调试不再那么繁琐了,用普通的appID就能进行真机调试,具体步骤仅需再acount添加账号,选择free,随后fix 即可进行真机调试。(待证实)
  • 最新的iOS9 推出,苹果为加强安全管理,迫使将http协议转为安全的 https协议,那么以往的代码,运行起来就会有警告或者编译有问题,解决方案是:在info.plist中添加字段如下:
  • watch os2
    <dict>        <key>NSAllowsArbitraryLoads</key>        <true/>    </dict>
  • 果又推出一种新的适配方式 UIStackView,具体如何使用,有热心的开发者已经将步骤完美呈现

来源:
iOS9编程GOGOGO:XCode7新变化
xcode7的一些变化

警告 : Could not resolve external type

warning: Could not resolve external type c:objc(cs)NSString
warning: Could not resolve external type c:objc(cs)NSDictionary
warning: Could not resolve external type c:objc(cs)NSMutableString
warning: Could not resolve external type c:objc(cs)NSError

解决方法:
设置中的Debug Information Format项:
修改debug为DWARF
修改release为DWARF with dSYM File

http://www.cnblogs.com/mobilefeng/p/4834926.html

警告: was built for newer iOS version (5.1.1) than being linked (5.1)

修改设置Other Linker Flags项:
添加-w

http://stackoverflow.com/questions/32270491/xcode-7-warning-was-built-for-newer-ios-version-5-1-1-than-being-linked-5-1

错误: bitcode

修改设置Enable Bitcode项:
改为false
若为true, 必须所有包含的第三方包支持Enable Bitcode

http问题:

在Info.plist文件中添加”App Transport SecuritySettings”, Type为”Dictionary”,再添加”Allow Arbitray Loads”, Type 为”Boolean”,“Value”为“YES”即可。

<key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><true/></dict>
0 0
原创粉丝点击