本篇主要记录ios相关问题 其中大部分都是0.60版本相关报错
1.最常遇到的ios启动问题:
ld: library not found for -lDoubleConversion
rm -rf node_modules
npm install
killall -9 node
npm start -- --reset-cache
react-native run-ios
----
react-native run-android
that worked but got stuck at 0% on the simulator device, so I deleted the APK off the simulator and ran react-native run-android again.
也可以尝试如下解决办法
2.ios证书相关问题
在xcode中打包或者真机调试时调用相关证书每次都要输入账号密码
搜到了一个解决办法比较清晰地址 主要内容截图
3.真机调试功能
真机调试时报错:The executable was signed with invalid entitlements. The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile. (0xE8008016).
真机调试时报错: Could not launch “demo” pan的 iPhone has denied the launch request. Internal launch error: process launch failed: Unspecified
其他相关问题截图
真机调试时启动图不显示,app内有上下黑边,明明都放的有各个尺寸的启动页
4.ios打包(xcode 中 archive功能)
archive打包完后不小心关闭了,如果再次打开? 点击xcode中window -> organizer
在xcode中打包后上传报错
申请 appid 后还需要到苹果开发者账号里,先要新建这个ID对应的应用,这样上传的包才会知道上传到哪里
上传苹果版本时错误解决办法:No suitable application records were found. Verify your bundle identifier
打包时报错ERROR ITMS-90034:
ERROR ITMS-90034: "Missing or invalid signature. The bundle 'com.mytijian.apptest' at bundle path
'Payload/app.app' is not signed using an Apple submission certificate."
iOS APP 打包新版本上传到App Store出错:ERROR ITMS-90034 "Missing or invalid signature.The bundle'xxx.xxx.xxx' a
概括为:
- 检查证书是否过期
- 检查证书的信任模式,不能是“总是信任”,要改成“使用系统模式”
ios启动报错: ld: library not found for -ldAfnetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
另外注意不要把apptests里面的archive勾选上,不然会打包报错
iOS审核记录
到目前为止,被拒了两次:
第一次被拒
原因之一:主要是因为提供的屏幕截图上的数据与真实数据不匹配,屏幕截图上的数据内容是我们的UI示例图,里面的数据只是示例,从发送的邮件来看这样是不行的
原因之二:我们的app是通过手机验证码登录的,第一次提交审核时,因为考虑到验证码是动态的,所以就没有提供账号密码(因为不能只提供账号,不提供密码),在备注中说明了这个情况,但这样是不行的,被拒了
解决办法:
1.设计师重新做图,图中的内容全部用真实的数据,不再是测试数据 2.准备一个固定的账号密码,在登录时特殊处理
第二次被拒
说我们的app crashing,排查发现是我们的webview中有上传头像功能,没有申请相机权限,增加后重新提交审核了