iOS打包错误The operation couldn’t be completed. (AppThinning.StubError error 1.)

1、iOS打包错误

iOS打包报错:The operation couldn’t be completed. (AppThinning.StubError error 1.)

操作流程:archive之后选择Distribute App,在如上图步骤选择 Ad Hoc,然后出现The operation couldn’t be completed. (AppThinning.StubError error 1.)

Xcode版本:Xcode 14.1

查看错误:点击第二个图片的Show Logs,跳转到错误日志文件;然后查看IDEDistribution.verbose.log,在文件中搜索’require’

error: `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
1.安装 sqlite3

sudo gem install sqlite3    

然后查看已安装版本

rvm list rubies

2.更新环境

rvm use system --defaul

如果路径报警告⚠️需要指定版本:例如

 rvm use 2.7.0 --default

3.重启电脑

步骤2、3是为了保险起见所做的操作

操作完之后,重新打包即可解决

猜你喜欢

转载自blog.csdn.net/RreamigOfGirls/article/details/128146944