xcode 归档时命令PhaseScriptExecution失败,退出代码为非零

siv3szwd  于 2023-04-13  发布在  其他
关注(0)|答案(1)|浏览(183)

我有这个错误:当我存档时,命令PhaseScriptExecution失败,退出代码为非零,我不知道该怎么办。
当我在模拟器上运行时,我在构建设置中将arm64添加到Excluded Architectures,并且它可以工作。但是当我尝试存档时,它显示了错误。所以我试图将arm64删除到Excluded Architectures
我尝试了很多关于几个主题的stackoverflow解决方案,但任何答案都有效。
我使用的是Xcode 14.3,下面是日志:

这是我的podfile:

platform :ios, '13.2'
def firebase_pods 
   pod 'FirebaseAnalytics'  
   pod 'FirebaseAuth'
   pod 'FirebaseFirestore'
   pod 'FirebaseStorage'
   pod 'GooglePlaces'
   pod 'FirebaseMessaging'
   pod 'MessageKit'
   pod 'GeoFire/Utils'  
end 

target 'My Team' do
use_frameworks!
   firebase_pods
   
end

post_install do |installer_representation|
    installer_representation.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
            config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
        end
    end
end
wz1wpwve

wz1wpwve1#

在新版本的xcode中创建构建时,我们都面临相同的rsync错误。
1.search frameworks.shpods文件夹中的www.example.com文件

Pods/Target Support Files/Pods-{Project Name}/Pods-{Project Name}-frameworks.sh

2.search for source="$(readlink“${source}”)”并替换它

#source="$(readlink "${source}")" // Comment this line
source="$(readlink -f "${source}")" // add this line or just edit above line with `-f`

相关问题