zalando / SwiftMonkey

A framework for doing randomised UI testing of iOS apps
MIT License
1.95k stars 174 forks source link

Once Swift Package Manager has iOS support, update project to support it properly #8

Open DagAgren opened 7 years ago

DagAgren commented 7 years ago

Currently, SPM does not support iOS, but once it does, the preliminary support included currently should be fixed.

xcodeprojs could be generated directly from SPM, too.

ermik commented 4 years ago

Is this a possibility now?

ApplebaumIan commented 3 years ago

Just came across this https://developer.apple.com/documentation/swift_packages/bundling_resources_with_a_swift_package is there anything specific keeping SwiftMonkey from supporting Swift 5.3?

ApplebaumIan commented 3 years ago

I'm running into two issues trying to quickly implement this.

  1. I'm not sure how make SwiftMonkey and SwiftMonkey paws separate packages. If you don't have the Package.swift file at the root of your project Swift Package manager gets angry and says there is no package manifest.
  2. Ignoring the above issue and just testing isolating the package from the project I'm getting this error when trying to run the package in my testing environment ld: warning: Could not find or use auto-linked library 'XCTestSwiftSupport' ld: warning: Could not find or use auto-linked framework 'XCTest' I'm assuming this is because XCTest is necessary to compile SwiftMonkey? it's just weird that the package builds on its own but fails to build in a project. I'm not sure how to add XCTest as a dependency to the package however I do think that Swift 5.3 allows for this. Another direction that could be taken is compiling SwiftMonkey as an xcframework and adding that to SPM.