- ITMS-90096: 需要修改plist,详见答案第二高的 https://stackoverflow.com/questions/28830013/your-binary-is-not-optimized-for-iphone-5-itms-90096-when-submitting?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
- ITMS-90122 xcode最低版本设置为8.0 https://www.jianshu.com/p/acd02674b57e
打adHoc包报错 missing beta-reports-active -
在xxxx.entitlements文件中增加字段:
<key>beta-reports-active</key>
<true/>
重启xcode,重新archive出app,export出ipa。
How can I fix this error: “ARC forbids explicit message send of 'release' in Xcode”
Disabling ARC for selected files To disable ARC, you can use the -fno-objc-arc compiler flag for specific files. Select the target and go to Build Phases -> Compile Sources. Edit the Compiler
Flags and add -fno-objc-arc
.
objc格式化输出
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
//常用类型的定义
int i =10;
BOOL isShow=TRUE;
float f = 3.1415926;
char a =120;
NSString *name =@"Himi";
//常用打印语句
NSLog(@"字符串:%@",name);
NSLog(@"字符:%c",a);
NSLog(@"布尔值:%i",isShow);
NSLog(@"整形:%i",i);
NSLog(@"单精度浮点数: %f",f);
NSLog(@"精度浮点数,且只保留两位小数:%.2f",f);
NSLog(@"科学技术法:%e",f);
NSLog(@"科学技术法(用最简短的方式):%g",f);
NSLog(@"同时打印两个整数:i=%i,f=%f",i,f);
%@ 对象
%d, %i 整数
%u 无符整形
%f 浮点/双字
%x, %X 二进制整数
%o 八进制整数
%zu size_t
%p 指针
%e 浮点/双字 (科学计算)
%g 浮点/双字
%s C 字符串
%.*s Pascal字符串
%c 字符
%C unichar
%lld 64位长整数(long long)
%llu 无符64位长整数
%Lf 64位双字
%e 是实数,用科学计数法计的