openbakery / gradle-xcodePlugin

gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS
Apache License 2.0
457 stars 127 forks source link

Carthage issue when switching platform without cleaning #385

Closed elsassph closed 2 years ago

elsassph commented 6 years ago

Carthage support was optimised (#384) to run update --platform against the project's target platform only.

Unfortunately, update will be skipped when switching platform because the detection is flawed: even when targeting a single platform, Carthage will compile some libraries against all platforms.

Solution could be to add an xcodebuild.carthagePlatforms to override the platform detection and allow specifying multiple platforms like iOS + tvOS.

Additionally, peeking at Cathage/Build/<platformname> should be removed.