trinhngocthuyen / cocoapods-spm

A CocoaPods plugin to add SPM dependencies to CocoaPods-based projects
MIT License
42 stars 7 forks source link

[Bug] aws-crt-swift package modulemap not found #105

Open zeeshanmakeen opened 1 month ago

zeeshanmakeen commented 1 month ago

What happened?

I am running this pod file:

target 'TestApp' do
 platform :ios, '13.0'

 spm_pkg "aws-crt-swift", 
  :git => "https://github.com/awslabs/aws-crt-swift.git", 
  :branch => "0.30.0", 
  :products => [
    "AwsCommonRuntimeKit"
     ]
end

Pod install command is running fine. But when building the actual project, I am getting this error:

/Users/zeeshansheikh/Documents/GitHub/AmazonLocationiOSAuthTest/AmazonLocationiOSAuthTestApp/Pods/Target Support Files/Pods-AmazonLocationiOSAuthTestApp/Pods-AmazonLocationiOSAuthTestApp-dummy.m module map file '/Users/zeeshansheikh/Library/Developer/Xcode/DerivedData/AmazonLocationiOSAuthTestApp-djdgfoosokhnpmgxmjfddepnxwvz/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/AwsCPlatformConfig.modulemap' not found

It is not generating all the modulemap files. Specifically the moduel inside aws-common-runtime folder of the SPM package. This is happening with this spm package only. Am I missing something here?

CocoaPods environment

Stack

   CocoaPods : 1.15.2
        Ruby : ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [arm64-darwin23]
    RubyGems : 3.5.14
        Host : macOS 14.5 (23F79)
       Xcode : 15.4 (15F31d)
         Git : git version 2.45.2
Ruby lib dir : /opt/homebrew/Cellar/ruby/3.3.3/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /opt/homebrew/lib/ruby/gems/3.3.0/bin/pod

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-pod-linkage : 0.0.1
cocoapods-search      : 1.0.1
cocoapods-spm         : 0.1.4
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

target 'AmazonLocationiOSAuthTestApp' do
 platform :ios, '13.0'

 spm_pkg "aws-crt-swift", 
  :git => "https://github.com/awslabs/aws-crt-swift.git", 
  :branch => "0.30.0", 
  :products => [
    "AwsCommonRuntimeKit"
     ]
end

Anything else?

No response

zeeshanmakeen commented 1 month ago

Hi @trinhngocthuyen any advice on this?