You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added swift packages to pods project in post_install hook but got the following error on project build:
What did you expect to happen?
I expected I will be able to build and run project after adding swift package to the pod targets.
What happened instead?
Got error No such module 'Algorithms' where Algorithms is a target in the swift-algorithms package.
CocoaPods Environment
[!] The signature of CLAide#arguments has changed. Use CLAide::Argument (Pod::Command::Lib::Archive: [["[NAME]", :optional]])
objc[55892]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1f0307678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107f8c2c8). One of the two will be used. Which one is undefined.
objc[55892]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1f03076c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107f8c318). One of the two will be used. Which one is undefined.
# Uncomment the next line to define a global platform for your project# platform :ios, '9.0'target'Example'do# Comment the next line if you don't want to use dynamic frameworksuse_frameworks!# Pods for Examplepod'Alamofire'endpost_installdo |installer|
swift_package=installer.pods_project.newXcodeproj::Project::Object::XCRemoteSwiftPackageReferenceswift_package.repositoryURL="https://github.com/apple/swift-algorithms.git"swift_package.requirement={"kind"=>"upToNextMajorVersion","minimumVersion"=>"1.0.0"}swift_package_product=installer.pods_project.newXcodeproj::Project::Object::XCSwiftPackageProductDependencyswift_package_product.package=swift_packageswift_package_product.product_name="Algorithms"swift_package_build_file=installer.pods_project.newXcodeproj::Project::Object::PBXBuildFileswift_package_build_file.product_ref=swift_package_productswift_package_build_file.referrers << installer.pods_project['Frameworks']installer.pods_project.root_object.package_references << swift_packageinstaller.pods_project.native_targets.select{
|target| installer.generated_pod_targets.any?{ |pod| pod.pod_name == target.name}}.eachdo |target|
target.frameworks_build_phase.files << swift_package_build_filetarget.package_product_dependencies << swift_package_productendend
Project that demonstrates the issue
Sample project is hosted in this repo in Example directory.
The text was updated successfully, but these errors were encountered:
log" Adding workaround for Swift package not found issue"target=project.targets.find{ |t| t.name == pod_name}target.build_configurations.eachdo |config|
target.build_settings(config.name)['SWIFT_INCLUDE_PATHS'] ||= ['$(inherited)']search_path='${SYMROOT}/${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}/'unlesstarget.build_settings(config.name)['SWIFT_INCLUDE_PATHS'].include?(search_path)target.build_settings(config.name)['SWIFT_INCLUDE_PATHS'].push(search_path)endend
Report
What did you do?
I added swift packages to pods project in
post_install
hook but got the following error on project build:What did you expect to happen?
I expected I will be able to build and run project after adding swift package to the pod targets.
What happened instead?
Got error
No such module 'Algorithms'
whereAlgorithms
is a target in the swift-algorithms package.CocoaPods Environment
[!] The signature of CLAide#arguments has changed. Use CLAide::Argument (Pod::Command::Lib::Archive:
[["[NAME]", :optional]]
)objc[55892]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1f0307678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107f8c2c8). One of the two will be used. Which one is undefined.
objc[55892]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1f03076c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107f8c318). One of the two will be used. Which one is undefined.
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
Sample project is hosted in this repo in
Example
directory.The text was updated successfully, but these errors were encountered: