ionic-team / capacitor-plugin-converter

A Swift Package to convert Capacitor Plugins from Cocoapods to SPM

Repository from Github https://github.comionic-team/capacitor-plugin-converterRepository from Github https://github.comionic-team/capacitor-plugin-converter

Invalid custom path error

GuillaumeUnice opened this issue · comments

I opt out the converter on the geolocation plugin:

 debug-portal-spm (main|✚3…)./cap2spm node_modules/@capacitor/geolocation 
Moving GeolocationPlugin.swift to GeolocationPlugin.swift.old...
Moving /Users/gBorg/dev/debug-portal-spm/node_modules/@capacitor/geolocation/ios/Plugin/GeolocationPlugin.m to /Users/gBorg/dev/debug-portal-spm/node_modules/@capacitor/geolocation/ios/Plugin/GeolocationPlugin.m.old...
Moving /Users/gBorg/dev/debug-portal-spm/node_modules/@capacitor/geolocation/ios/Plugin/GeolocationPlugin.h to /Users/gBorg/dev/debug-portal-spm/node_modules/@capacitor/geolocation/ios/Plugin/GeolocationPlugin.h.old...

so far so good then I import the dependency into my project:

let package = Package(
    name: "MyTest",
		platforms: [.iOS(.v13)],
		dependencies: [
                    .package(path: "./node_modules/@capacitor/geolocation/")
		],

And the plugin seems to be present but XCode Issue navigator print the following error:

x-xcode-log://A91367E6-601E-4DFA-9891-9A86017E3656 invalid custom path 'ios/Sources/GeolocationPlugin' for target 'GeolocationPlugin'

I observe the plugin and source code in 'ios/Plugin' and not 'ios/Sources' but even by update that I still encounter the same issue.

Any Idea from where that come from?