nokeedev / gradle-native

The home of anything about Gradle support for natively compiled languages

Home Page:https://nokee.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validate Xcode build adapter against Wikipedia-iOS build

lacasseio opened this issue · comments

As a user of the Xcode build adapter, I want to build a project with similar complexity as the Wikipedia-iOS build so that I can prove the build adapter works as advertised.

Acceptance Criteria

  • When invoking gradle Wikipedia -Dconfiguration=Debug -Dsdk=iphonesimulator, the build completes successfully.

The Wikipedia build has the following particularities:

  • Presence of empty entries in PBXShellScriptBuildPhase#inputPaths; it's unclear if Xcode considers these empty path in its up-to-date checking.
  • Usage of SwiftPM, these seem to be transitive, meaning A -> B -> SwiftPM, project A would have access to SwiftPM products.
  • The build doesn't seem to be working locally; we only had some success via the Xcode build adapter

According to our experiment, we should be able to propagate the SwiftPM manually from the transitive dependencies to its children.

Let me go back on the last comment, it's actually a lack of the implicit dependency service which doesn't look for dependencies into PBXFrameworksBuildPhase's files. Forcing a dependency actually solve the issue. Much easier that propagating the SwiftPM dependencies.