I've a framework project on IOS and I would like to change it to a cocoapod project , however as much as I read from making cocoapod documentation its commonly used for the project which source codes are open. However our SDK is commercial and our customers are paying money for that, so I would like to include my existing framework into cocoapod library(private or public) but I dont want my source codes to be seen. Is something like that possible?
I' ve seen the google analytics made something like that ( https://developers.google.com/analytics/devguides/collection/ios/v3/)
Does anybody know how can I do something like that?
[EDIT]
According to answers, I've modified our podspec file as in the below url: https://github.com/Kandy-IO/test-cp/blob/1.6.7/CPaaSSDK.podspec
However when I try to push it to cocoapods , it gave the below error
Validating podspec
-> CPaaSSDK (1.6.7)
- ERROR | [iOS] public_header_files: The pattern includes header files that are not listed in source_files (/private/var/folders/kl/zfs4qq_d119cvqq26x9rt3zc0000gp/T/CocoaPods-Lint-20190513-14320-1opt8kx-CPaaSSDK/Pods/CPaaSSDK/CPaaSSDK.framework/Headers/CPaaSSDK-Swift.h, /private/var/folders/kl/zfs4qq_d119cvqq26x9rt3zc0000gp/T/CocoaPods-Lint-20190513-14320-1opt8kx-CPaaSSDK/Pods/CPaaSSDK/CPaaSSDK.framework/Headers/CPaaSSDK.h).
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- NOTE | [CPaaSSDK/CPUtilities, CPaaSSDK/RestManager, CPaaSSDK/CPWebRTC, and more...] xcodebuild: note: Using new build system
- NOTE | [CPaaSSDK/CPUtilities, CPaaSSDK/RestManager, CPaaSSDK/CPWebRTC, and more...] xcodebuild: note: Planning build
- NOTE | [CPaaSSDK/CPUtilities, CPaaSSDK/RestManager, CPaaSSDK/CPWebRTC, and more...] 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:
- NOTE | xcodebuild: ld: warning: Could not find auto-linked library 'swiftMetal'
- 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 '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 library 'swiftCoreAudio'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked framework 'CPAddressBookService'
- NOTE | xcodebuild: ld: warning: Could not find auto-linked framework 'CPWebRTC'
- 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 'CPUtilities'
- 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: clang: error:
- NOTE | [iOS] xcodebuild: ld: warning: Could not find auto-linked library 'swiftsimd'
- NOTE | [iOS] xcodebuild: ld: warning: Could not find auto-linked library 'swiftAVFoundation'
- NOTE | [iOS] xcodebuild: ld: warning: Could not find auto-linked framework 'RestManager'
- NOTE | [iOS] xcodebuild: ld: warning: Could not find auto-linked framework 'CPPresenceService'
- NOTE | [iOS] xcodebuild: ld: warning: Could not find auto-linked framework 'CPCallService'
- NOTE | [iOS] xcodebuild: ld: warning: Could not find auto-linked framework 'CPPushService'
- ERROR | [CPaaSSDK/CPUtilities, CPaaSSDK/RestManager, CPaaSSDK/CPWebRTC, and more...] file patterns: The `vendored_frameworks` pattern did not match any file.
- WARN | [CPaaSSDK/CPUtilities, CPaaSSDK/RestManager, CPaaSSDK/CPWebRTC, and more...] file patterns: The `public_header_files` pattern did not match any file.
[!] The spec did not pass validation, due to 3 errors and 1 warning.
Thanks