xcode ad hoc The data couldn’t be read because it isn’t in the correct format

Xcode10.2 ad hoc 打包报错The data couldn’t be read because it isn’t in the correct format ,查看日志文件发现报 cannot load such file -- sqlite3 (LoadError) 的错误信息

/Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- sqlite3 (LoadError)
from /Library/Ruby/Site/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:24:in `<main>'
2018-12-04 20:14:31 +0000  /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool exited with 1
2018-12-04 20:14:31 +0000  ipatool JSON: (null)

解决办法如下:

gem list | grep sqlite3

如果没有输出信息则说明确实少了sqlite3 这个文件。
执行下面这条命令安装。

gem install sqlite3 --platform=ruby

安装成功后需要重启电脑才会生效。

如果并不是报缺少某个文件的错误信息,可以使用以下命令来检测工程配置文件语法是否有错。

plutil Info.plist

 上述若不能解决问题,可采用如下流程:

Quit Xcode
Open terminal and run rvm use system
Reopen Xcode and build

参考1:https://www.jianshu.com/p/103f414fa870

参考2:https://stackoverflow.com/questions/48698874/react-native-ios-signature-export-ipa-file-error-the-data-couldn-t-be-read-beca

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值