创建自己的Pod库Swift并获取错误|[iOS]xcodebuild:返回了不成功的退出代码

创建自己的Pod库Swift并获取错误|[iOS]xcodebuild:返回了不成功的退出代码,ios,swift,cocoapods,Ios,Swift,Cocoapods,我正在学习制作自己的pod库,以下是链接: 但是,当我在释放pod之前运行命令pod lib lint时,我得到一个错误: -> LeoPopScreen (0.1.0) - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information. - NOTE | xcodebuild: note: Using new bu

我正在学习制作自己的pod库,以下是链接:

但是,当我在释放pod之前运行命令
pod lib lint
时,我得到一个错误:


 -> LeoPopScreen (0.1.0)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - NOTE  | xcodebuild:  note: Using new build system
    - NOTE  | xcodebuild:  note: Building targets in parallel
    - NOTE  | xcodebuild:  note: Using codesigning identity override: -
    - NOTE  | [iOS] xcodebuild:  note: Planning build
    - NOTE  | [iOS] xcodebuild:  note: Constructing build description
    - NOTE  | [iOS] xcodebuild:  warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'LeoPopScreen' from project 'Pods')
    - NOTE  | [iOS] xcodebuild:  warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'Pods-App' from project 'Pods')
    - NOTE  | [iOS] xcodebuild:  /Users/ranggaleo/Downloads/Project/LeoPopScreen/LeoPopScreen/LeoPopScreen/Classes/LeoPopScreen.xib:zyP-PG-5ZG: error: UIStackView before iOS 9.0 [6]
    - NOTE  | [iOS] xcodebuild:  warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'App' from project 'App')
    - NOTE  | [iOS] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')```


has anyone ever experienced? how to fix it?

如果您使用的是Xcode 12,请将ios部署目标至少设置为9.0:

s.ios.deployment\u目标='9.0'