Closed qingni closed 3 years ago
使用Swift-OC-Demo,运行‘pod bin auto --all-make --configuration=Debug’ 命令, 错误如下:
` Error
RuntimeError - Build command failed: xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$(inherited)' ARCHS='arm64' OTHER_CFLAGS='-fembed-bitcode -Qunused-arguments' CONFIGURATION_BUILD_DIR=/Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build-arm64 clean build -configuration Debug -target Swift-OC -project ./Pods/Pods.xcodeproj 2>&1 Output: Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild "GCC_PREPROCESSOR_DEFINITIONS=$(inherited)" ARCHS=arm64 "OTHER_CFLAGS=-fembed-bitcode -Qunused-arguments" CONFIGURATION_BUILD_DIR=/Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build-arm64 clean build -configuration Debug -target Swift-OC -project ./Pods/Pods.xcodeproj Build settings from command line: ARCHS = arm64 CONFIGURATION_BUILD_DIR = /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build-arm64 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) OTHER_CFLAGS = -fembed-bitcode -Qunused-arguments note: Using new build system ** CLEAN SUCCEEDED ** [0.256 sec] note: Using new build system note: Planning build note: Constructing build description CreateBuildDirectory /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build (in target 'Moya' from project 'Pods') cd /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/Pods builtin-create-build-directory /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build WriteAuxiliaryFile /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build/Pods.build/Debug-iphoneos/Alamofire.build/Alamofire.hmap (in target 'Alamofire' from project 'Pods') cd /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/Pods write-file /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build/Pods.build/Debug-iphoneos/Alamofire.build/Alamofire.hmap WriteAuxiliaryFile /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build/Pods.build/Debug-iphoneos/Alamofire.build/Alamofire-generated-files.hmap (in target 'Alamofire' from project 'Pods') cd /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/Pods write-file /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build/Pods.build/Debug-iphoneos/Alamofire.build/Alamofire-generated-files.hmap WriteAuxiliaryFile /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build/Pods.build/Debug-iphoneos/Alamofire.build/all-product-headers.yaml (in target 'Alamofire' from project 'Pods') cd /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/Pods write-file /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build/Pods.build/Debug-iphoneos/Alamofire.build/all-product-headers.yaml WriteAuxiliaryFile /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build/Pods.build/Debug-iphoneos/Alamofire.build/Alamofire-all-target-headers.hmap (in target 'Alamofire' from project 'Pods') cd /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/Pods write-file /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build/Pods.build/Debug-iphoneos/Alamofire.build/Alamofire-all-target-headers.hmap WriteAuxiliaryFile /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build/Pods.build/Debug-iphoneos/Alamofire.build/Alamofire-own-target-headers.hmap (in target 'Alamofire' from project 'Pods') cd /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/Pods write-file /Users/qingli/Desktop/组件二进制环境/Swift-OC-bin-Demo/Swift-OC-Demo-build-temp/bin-archive/Swift-OC/build/Pods.build/Debug-iphoneos/Alamofire.build/Alamofire-own-target-headers.hmap ....... If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods... Searching for inspections failed: Broken pipe [!] ====== cocoapods-imy-bin 0.3.1.3 版本 ======== [!] ====== dev 环境 ======== [!] ========= swift add_swift_library_compatibility_header_phase [!] ========= null swift add_swift_library_compatibility_header_phase [!] ========= swift add_swift_library_compatibility_header_phase [!] ========= null swift add_swift_library_compatibility_header_phase [!] ========= swift add_swift_library_compatibility_header_phase [!] ========= null swift add_swift_library_compatibility_header_phase [!] ========= swift add_swift_library_compatibility_header_phase [!] ========= null swift add_swift_library_compatibility_header_phase [!] ========= swift add_swift_library_compatibility_header_phase [!] ========= null swift add_swift_library_compatibility_header_phase [!] ========= swift add_swift_library_compatibility_header_phase [!] ========= null swift add_swift_library_compatibility_header_phase [!] ========= swift add_swift_library_compatibility_header_phase [!] ========= null swift add_swift_library_compatibility_header_phase [!] ========= swift add_swift_library_compatibility_header_phase [!] ========= null swift add_swift_library_compatibility_header_phase [!] ========= swift add_swift_library_compatibility_header_phase [!] ========= null swift add_swift_library_compatibility_header_phase [!] ========= swift add_swift_library_compatibility_header_phase [!] ========= null swift add_swift_library_compatibility_header_phase ` podfile如下: `#plugin 'cocoapods-imy-bin' #use_binaries! #set_use_source_pods ['Moya','SnapKit'] source 'https://cdn.cocoapods.org/' platform :ios, '10.0' #use_frameworks! target 'Swift-OC' do #Swift库 pod 'Alamofire' pod 'Moya' pod 'SnapKit' pod 'Kingfisher' pod 'HandyJSON' pod 'lottie-ios' pod 'Toast' #OC库 pod 'MYLCommonUI', '~> 0.0.11' pod 'Masonry' end` Swift-OC.podspec如下: `Pod::Spec.new do |s| s.name = 'Swift-OC' s.version = '1.0.2.2' s.description = 'IMYSwift Description.' s.license = 'MIT' s.summary = 'Swift-OC' s.homepage = 'https://meiyou.com' s.authors = { 'x' => 'x@x.com' } s.source = { :git => 'git@gitlab.meiyou.com:iOS/IMYSwift.git', :branch => 'dev' } s.requires_arc = true s.ios.deployment_target = '10.0' s.swift_version = '5.0' s.resources = 'Swift-OC/**/*.{json,png,jpg,gif,js,xib,eot,svg,ttf,woff,db,sqlite,mp3}','Swift-OC/**/*.bundle' s.source_files = 'Swift-OC/**/*.{h,m,swift,pch}' s.prefix_header_file = 'Swift_OC-Swift.h' #s.prefix_header_contents = '#import "Swift_OC-Swift.h"' #s.public_header_files = 'Swift_OC-Swift.h' #s.module_name = 'Swift-OC' #s.private_header_files = 'Source/**/*.{h}' s.dependency 'RxCocoa', '~> 5' s.dependency 'RxSwift', '~> 5' s.dependency 'Alamofire' s.dependency 'Moya' s.dependency 'SnapKit' s.dependency 'Kingfisher' s.dependency 'HandyJSON' s.dependency 'lottie-ios' s.dependency 'Toast' s.dependency 'MYLCommonUI' s.dependency 'Masonry' end` 麻烦大佬帮忙看下怎么回事?
在Swift-OC-Demo加了BinArchive.json,Podfile_local以及xx_test.podspec文件,和OCdemo中的文件对齐,已经可以打包上传下载了
@qingni hello,我看起来和你遇见了相同的问题,我也添加BinArchive.json,Podfile_local以及xx_test.podspec文件,不过还是有这个问题,请问一下具体还有其他操作么
使用Swift-OC-Demo,运行‘pod bin auto --all-make --configuration=Debug’ 命令, 错误如下:
` Error