1. 编译开源项目或网上的demo,直接崩溃,显示:
Application windows are expected to have a root view controller at the end of application launch
解决方案:
Xcode7.0 只需在AppDelega.m的didFinishLaunchingWithOptions添加
self.window.rootViewController = [[UIViewController alloc]init];
2. MPMoviePlayerController 在模拟器里调试,出现黑屏,无法播放视频。经查找,测试,发现和arc有关系。单个文件不用arc编译即可。
3. 用AVPlayer 或 MPMoviePlayerController 模拟器播放时,有时出现异常,各种查,应该是库的问题,去掉xcode上ALL Exceptions 断点即可。
4. iOS 9 遇到 “App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.”。
解决方案:
新特性要求App内访问网络请求,要采用 HTTPS 协议,如果需要访问HTTP协议:
a. 在Info.plist中添加 App Transport Security Settings 类型 Dictionary ;
b. 在 App Transport Security Settings 下添加 Allow Arbitrary Loads 类型Boolean ,值设为 YES;
5. 编译错误:ARC forbids Objective-C object in struct
arc 项目中编译的非arc库中头文件结构体中包含了NSObject* 指针。
解决方案: 结构体中指针前加 __unsafe_unretained 即可。
6. 编译成功,要在模拟器运行时,出现:you don't have permission to view it 的提示框
解决方案:Build Setting - Build Options - Compiler for C/C++/Objective-C : 改成 Default compiler 即可。
7. iOS应用运行时,在设置中更改权限,应用被重启。
原因:更改当前app使用的权限,系统会发送:Terminated due to signal 9,然后强制重启app。
8.bundle format unrecognized, invalid, or unsuitable
通过pod引入第三方库后,出现上面编译错误;
解决方法: Pods->TARGETS->你的出错的第三方sdk 库 ->General->Sign(Enable Development Signing),然后在identity里在选择info.plist
Application windows are expected to have a root view controller at the end of application launch
解决方案:
Xcode7.0 只需在AppDelega.m的didFinishLaunchingWithOptions添加
self.window.rootViewController = [[UIViewController alloc]init];
2. MPMoviePlayerController 在模拟器里调试,出现黑屏,无法播放视频。经查找,测试,发现和arc有关系。单个文件不用arc编译即可。
3. 用AVPlayer 或 MPMoviePlayerController 模拟器播放时,有时出现异常,各种查,应该是库的问题,去掉xcode上ALL Exceptions 断点即可。
4. iOS 9 遇到 “App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.”。
解决方案:
新特性要求App内访问网络请求,要采用 HTTPS 协议,如果需要访问HTTP协议:
a. 在Info.plist中添加 App Transport Security Settings 类型 Dictionary ;
b. 在 App Transport Security Settings 下添加 Allow Arbitrary Loads 类型Boolean ,值设为 YES;
5. 编译错误:ARC forbids Objective-C object in struct
arc 项目中编译的非arc库中头文件结构体中包含了NSObject* 指针。
解决方案: 结构体中指针前加 __unsafe_unretained 即可。
6. 编译成功,要在模拟器运行时,出现:you don't have permission to view it 的提示框
解决方案:Build Setting - Build Options - Compiler for C/C++/Objective-C : 改成 Default compiler 即可。
7. iOS应用运行时,在设置中更改权限,应用被重启。
原因:更改当前app使用的权限,系统会发送:Terminated due to signal 9,然后强制重启app。
8.bundle format unrecognized, invalid, or unsuitable
通过pod引入第三方库后,出现上面编译错误;
解决方法: Pods->TARGETS->你的出错的第三方sdk 库 ->General->Sign(Enable Development Signing),然后在identity里在选择info.plist