我们正在尝试将我们的2个框架项目上载到cocoapods。我已经为两个框架创建了必要的podspec文件,并使用 pod trunk push命令将其推到了cocoapods中 在第一个项目中没有错误,因为它不依赖于其他框架等。(https://github.com/Kandy-IO/test-wrtc)
但是在第二个项目中,存在很多错误,因为该框架依赖于实际框架文件夹中已经存在的其他一些子框架(您可以从此处检查我们的基础结构:https://github.com/Kandy-IO/test-cp,subframeworks位于子帧文件夹)
我为此框架创建了以下podspec文件:
Pod::Spec.new do |s|
s.name = 'CPaaSSDK'
s.version = '1.6.6'
s.summary = 'CpaasSDK'
s.homepage = 'https://github.com/Kandy-IO/test-cp'
s.license = { :type => 'MIT', :file => 'mit-license.txt'}
s.author = { 'Name' => 'tolgat@xxxxx.com.tr' }
s.platform = :ios
s.source = { :git => 'https://github.com/Kandy-IO/test-cp.git', :tag => '1.6.6'}
s.dependency 'CPaaSWebRTC'
s.public_header_files = "CPaaSSDK.framework/Headers/*.h", "CPaaSSDK.framework/SubFrameworks/**/Headers/*.h"
s.ios.deployment_target = '9.0'
s.ios.vendored_frameworks = 'CPaaSSDK.framework'
end
当我尝试推送podspec文件时,它出现以下错误。我应该怎么做才能摆脱这些错误。 注意:我们的子框架是混合的(其中一些是objc,有些是快速的),我们尝试推送的实际框架是一个umbralle框架
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- NOTE | xcodebuild: note: Using new build system
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftCoreGraphics'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftFoundation'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftsimd'
- NOTE | xcodebuild: ld: warning:
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftDarwin'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftUIKit'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftCoreFoundation'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftObjectiveC'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftDispatch'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftAVFoundation'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftCoreMedia'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftQuartzCore'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftCore'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftCoreImage'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked framework 'RestManager'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked framework 'CPAddressBookService'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked framework 'CPPresenceService'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked framework 'CPAuthenticationService'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked framework 'NotificationEngine'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked framework 'CPMessagingService'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked framework 'CPCallService'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked framework 'CPPushService'
- NOTE | xcodebuild: RestManager.CPRestDownloadRequest.completion(_: __C.NSObject?, error: Swift.Error?) -> () in CPaaSSDK(CPRestDownloadRequest.o)
- NOTE | xcodebuild: function signature specialization <Arg[1] = Exploded> of CPAddressBookService.CPAddressBookService.(logResult in _FFF4592E3450CC7F075A904CF3818DC2)(error: __C.CPError?, functionName: Swift.String) -> () in CPaaSSDK(CPAddressBookService.o)
- NOTE | [iOS] xcodebuild: ld: warning: Could not find auto-linked library 'swiftMetal'
- NOTE | [iOS] xcodebuild: ld: warning: Could not find auto-linked library 'swiftCoreAudio'
- NOTE | [iOS] xcodebuild: ld: warning: Could not find auto-linked framework 'CPWebRTC'
- NOTE | [iOS] xcodebuild: ld: warning: Could not find auto-linked framework 'CPUtilities'
- NOTE | [iOS] xcodebuild: clang: error: linker command failed with exit code 1 (use -v to see invocation)