升级xcode7 和 iOS9 后遇到的问题以及解决方案

一:支持http

  1. 在Info.plist中添加NSAppTransportSecurity类型Dictionary

  2. NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES

二:找不到rootviewcontroller
程序入口 用了[window  addSubview:viewController .view]。 换成[window setRootViewController:viewController];即可

三:真机调试出现 -fembed-bitcode is not supported on versions of iOS prior to 6.0

解决方案1:target --> building settings -->enable bitcode 设为 NO 即可

解决方案2:

Your problem is that the "Deployment Target" for your project is "5.0" and you are using a feature that isn't available for iOS 5.

Check the "General" tab for your build target

and update it to at least 6.0 to use Auto Layout


你可能感兴趣的:(iOS)