[IOS 开发] 开发错误总结-警告篇
2015-05-29 11:01
393 查看
警告篇
自己开发过程中遇到的警告,会持续更新,也希望大家多提意见
一,Missingfile xxx
如果你在finder中删除了工程里面的文件,xcode上会出现一个警告,Missingfile xxx,有个警告在那恨事不自在.上网着了下,发现了如下解决方法:
1.打开terminal,cd 到刚才你删除的文件的文件夹,就是xcode提示你missing的文件夹
2.执行 svn delete missFileName
二,LLVM GCC Warning
4.3默认使用的是ARC编译,不是原来的GCC编译,所以你编译老程序的话,改回GCC编译看行不行
具体改:选中 project->build setting->buildoptions->complier for c/objective-c/c++-> LLVM GCC 4.2
三,declaration of will not be visible outsideof
this function
解决方法:Add
to get away with this
四,Application
failed code signverification
解决办法:Target设置----->build------>ValidateBuilt
Product选项去掉就可以了
五,ld: warning: directory notfound for option ' '
解决方法 :
选择项目名称----->Targets----->BuildSettings----->SearchPaths----->LibrarySearch
Paths
删除对应路径
六,Unable
to extract entitlementsfrom application
iPhone/iPod Touch: application executable is missing a requiredarchitecture. At least one of the following architecture(s) must bepresent: armv6
Application failed codesign verification. The signature wasinvalid, contains disallowed entitlements, or it was not signedwith an iPhone Distribution Certificate.
Unable to extract entitlements from application: (null)
解决方法
Your problem may due to an invalid setting for the Build Variantsbuild setting. Valid settings are normal, profile,and debug.For
submission to the app store, this setting shouldbe normal.
Here’s how to fix this:
First update the Project build settings:
Click on Project ->
Search for “build variants”
Click on the arrow icon next to Build Variants in the searchresults to expand the section
Remove any existing entries and replace themwith normal
Next update the Target build settings:
Click on Targets ->
Search for “build variants”
Click on the arrow icon next to Build Variants in the searchresults to expand the section
Remove any existing entries and replace themwith normal
原文:
bfe0 http://stackoverflow.com/questions/10540848/validating-an-iphone-app-archive
[align=center]
[/align]
自己开发过程中遇到的警告,会持续更新,也希望大家多提意见
一,Missingfile xxx
如果你在finder中删除了工程里面的文件,xcode上会出现一个警告,Missingfile xxx,有个警告在那恨事不自在.上网着了下,发现了如下解决方法:
1.打开terminal,cd 到刚才你删除的文件的文件夹,就是xcode提示你missing的文件夹
2.执行 svn delete missFileName
二,LLVM GCC Warning
4.3默认使用的是ARC编译,不是原来的GCC编译,所以你编译老程序的话,改回GCC编译看行不行
具体改:选中 project->build setting->buildoptions->complier for c/objective-c/c++-> LLVM GCC 4.2
三,declaration of will not be visible outsideof
this function
+ (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress;(这里报的)
解决方法:Add
#import<netinet/in.h>inReachability.h
to get away with this
四,Application
failed code signverification
解决办法:Target设置----->build------>ValidateBuilt
Product选项去掉就可以了
五,ld: warning: directory notfound for option ' '
ld: warning: directory not found for option '-L/Users/frenck/Downloads/apz/../Google Analytics SDK/Library'
解决方法 :
选择项目名称----->Targets----->BuildSettings----->SearchPaths----->LibrarySearch
Paths
删除对应路径
六,Unable
to extract entitlementsfrom application
出错信息
iPhone/iPod Touch: application executable is missing a requiredarchitecture. At least one of the following architecture(s) must bepresent: armv6Application failed codesign verification. The signature wasinvalid, contains disallowed entitlements, or it was not signedwith an iPhone Distribution Certificate.
Unable to extract entitlements from application: (null)
解决方法
Your problem may due to an invalid setting for the Build Variantsbuild setting. Valid settings are normal, profile,and debug.For
submission to the app store, this setting shouldbe normal.
Here’s how to fix this:
First update the Project build settings:
Click on Project ->
<yourproject>->Build Settings
Search for “build variants”
Click on the arrow icon next to Build Variants in the searchresults to expand the section
Remove any existing entries and replace themwith normal
Next update the Target build settings:
Click on Targets ->
<yourproject>->Build Settings
Search for “build variants”
Click on the arrow icon next to Build Variants in the searchresults to expand the section
Remove any existing entries and replace themwith normal
原文:
bfe0 http://stackoverflow.com/questions/10540848/validating-an-iphone-app-archive
[align=center]
[/align]
相关文章推荐
- IOS 判断scrollView是否滑动到底部
- iOS多线程编程之Grand Central Dispatch(GCD)介绍和使用
- IOS学习之蓝牙4.0
- iOS 错误码
- iOS动画
- 学习ios开发2
- iOS开发系列--视图切换
- 使用HTML5构建iOS原生APP
- iOS 8出色的跨应用通信效果:解读Action扩展
- ios 多线程加载图片
- iOS开发宝典:String用法大全
- iOS集合
- 实现iOS应用图标右上角数字badge number提醒
- iOS中的排序笔记
- 类似iOS自带相册应用的图片浏览的实现
- IOS相册功能
- IOS如何实现灵活的瀑布流(2)
- iOS端项目注释规范附统一代码块
- IOS平台生成图片缩略图的两种方案
- ios日期格式yyyy-MM-dd