我们正在尝试将我们的 2 个框架项目上传到 cocoapods。我已经为两个框架创建了必要的 podspec 文件,并使用pod trunk push 命令将其推送到 cocoapods 在第一个项目中没有错误,因为它不依赖于任何其他框架等。(https://github.com/康提-IO/测试-wrtc )
但是在第二个项目中有很多错误,因为该框架依赖于已经在实际框架文件夹中的其他一些子框架(您可以从这里检查我们的基础设施:https : //github.com/Kandy-IO/test -cp ,子框架在子框架文件夹中)
我为此框架创建了以下 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
Run Code Online (Sandbox Code Playgroud)
当我尝试推送 podspec 文件时,它给出了以下错误。我该怎么做才能摆脱这些错误。注意:我们的子框架是混合的(有些是 objc,有些是 swift),我们尝试推送的实际框架是一个 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)
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
87 次 |
最近记录: |