命令PhaseScriptExecution失败,退出代码为非零Xcode v12.0.1

时间:2020-10-22 08:47:41

标签: ios dependencies cocoapods swift5 xcode12

我正在使用

Xcode v12.0.1 可可荚v1.10.0。

这是我的pod文件

# Uncomment the next line to define a global platform for your project
plugin 'cocoapods-binary'

platform :ios, '8.0'

all_binary!

target 'Food' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks

  use_frameworks!

  # Pods for Food

    

pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'Firebase/Messaging', :binary => false
pod 'FirebaseMessaging', :binary => false
pod 'Firebase/DynamicLinks'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Firestore'
pod 'Firebase/Analytics'
pod 'EasyTipView'
pod 'Hero'
pod 'SwiftLint'
pod 'ReachabilitySwift'
pod 'Koloda'
pod 'UIColor+FlatColors'
pod 'SDWebImage'
pod 'Stripe'
pod 'GoogleSignIn'
pod 'Alamofire', '~> 4.7.3'
pod 'JGProgressHUD'
pod 'Fabric'
pod 'Crashlytics'
pod 'DTButtonMenuController'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'ActiveLabel', :binary => false
pod 'Intercom', '~> 5.4.1'
pod 'AWSS3'
pod 'GooglePlacesSearchController', :binary => false
pod 'GooglePlaces', :binary => false
pod 'GooglePlacePicker',:binary => false
pod 'GoogleMaps',:binary => false
pod 'AMPopTip'

end

所有依赖项都已成功安装,所有依赖项的预构建过程也已完成

enter image description here

enter image description here

我的项目和pod项目的部署目标相同- enter image description here enter image description here

构建阶段: enter image description here

在iPhone 7设备上运行应用程序时出现此错误。

enter image description here enter image description here

我尝试过的事情:

  1. 我已删除派生数据并缓存并重新启动Xcode和Mac。
  2. 我还删除了所有pods podlock文件,.workspace,然后重新安装依赖项。
  3. 我已经多次尝试过#1和#2。

完成上述几点后,我的问题仍未解决。

1 个答案:

答案 0 :(得分:1)

可能是pods部署版本。 在我将广告连播更新到建议的目标版本的情况下,我的应用开始出现很多警告和错误。

但是您可以尝试用这个帖子的答案,这是一个类似的问题。

Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code