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 am new to iOS development and I see that the plugins here are using the SPM template rather than the CocoaPods one.
I would like to know how a contributor could add unit tests to any of these plugins and run them - ideally without a host/example app.
What is the expected developer setup and workflow when working on an iOS plugin in isolation?
Plugin(s)
All plugins in this repo, though using filesystem as an example.
Capacitor Version
Run from capacitor-plugins/filesystem
$ npx cap doctor
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2
Installed Dependencies:
@capacitor/cli: not installed
@capacitor/core: not installed
@capacitor/android: not installed
@capacitor/ios: not installed
Platform(s)
iOS
Current Behavior
No (obvious) way to run existing placeholder unit tests.
Expected Behavior
Some sort of test command like npm test or ./gradlew test equivalent to run all iOS unit tests and accompanying setup instructions (or a link to them).
Code Reproduction
cd filesystem
swift test
Results in errors like:
1 | import Foundation
2 | import Capacitor
| `- error: no such module 'Capacitor'
3 |
4 | @objc public class Filesystem: NSObject {
Other Technical Details
I couldn't run the tests in Xcode as I get this build error:
/Users/akanda/Library/Developer/Xcode/DerivedData/filesystem-fycybfztoqcatdftjshlbslyvbwn/SourcePackages/artifacts/capacitor-swift-pm/Capacitor/Capacitor.xcframework:1:1 While building for macOS, no library for this platform was found in '/Users/akanda/Library/Developer/Xcode/DerivedData/filesystem-fycybfztoqcatdftjshlbslyvbwn/SourcePackages/artifacts/capacitor-swift-pm/Capacitor/Capacitor.xcframework'.
I could successfully run npm run verify:ios, but that only builds.
Additional Context
If this is something obvious, then perhaps all that's needed is a contributions documentation update.
The text was updated successfully, but these errors were encountered:
Bug Report
I am new to iOS development and I see that the plugins here are using the SPM template rather than the CocoaPods one.
I would like to know how a contributor could add unit tests to any of these plugins and run them - ideally without a host/example app.
What is the expected developer setup and workflow when working on an iOS plugin in isolation?
Plugin(s)
All plugins in this repo, though using
filesystem
as an example.Capacitor Version
Run from
capacitor-plugins/filesystem
Platform(s)
iOS
Current Behavior
No (obvious) way to run existing placeholder unit tests.
Expected Behavior
Some sort of test command like
npm test
or./gradlew test
equivalent to run all iOS unit tests and accompanying setup instructions (or a link to them).Code Reproduction
Results in errors like:
Other Technical Details
I couldn't run the tests in Xcode as I get this build error:
I could successfully run
npm run verify:ios
, but that only builds.Additional Context
If this is something obvious, then perhaps all that's needed is a contributions documentation update.
The text was updated successfully, but these errors were encountered: