forcedotcom / SalesforceMobileSDK-Package

BSD 3-Clause "New" or "Revised" License
22 stars 20 forks source link

Not letting xcodebuild pick the destination randomly #300

Closed wmathurin closed 1 week ago

wmathurin commented 1 week ago

Otherwise MobileSyncExplorerSwift was not compiling because a catalyst destination was used but. RecentContactsExtension does not compile there:

!FAILURE! COMPILING native_swift app for ios based on template MobileSyncExplorerSwift (dev)
Command failed: xcodebuild -workspace /Users/distiller/SalesforceMobileSDK-Package/tmp20241007T230359.281/iosmobilesyncexplorerswift/iosmobilesyncexplorerswift.xcworkspace -scheme iosmobilesyncexplorerswift clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:0000FE00-8D8861F646F3907A, name:My Mac }
...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:0000FE00-8D8861F646F3907A, name:My Mac }
...
** BUILD FAILED **

The following build commands failed:
        EmitSwiftModule normal arm64 (in target 'RecentContactsExtension' from project 'iosmobilesyncexplorerswift')
        SwiftEmitModule normal arm64 Emitting\ module\ for\ RecentContactsExtension (in target 'RecentContactsExtension' from project 'iosmobilesyncexplorerswift')
        SwiftCompile normal arm64 Compiling\ RecentContacts.swift,\ ContactHelpers.swift /Users/distiller/SalesforceMobileSDK-Package/tmp20241007T230359.281/iosmobilesyncexplorerswift/RecentContacts/RecentContacts.swift /Users/distiller/SalesforceMobileSDK-Package/tmp20241007T230359.281/iosmobilesyncexplorerswift/iosmobilesyncexplorerswift/Helpers/ContactHelpers.swift (in target 'RecentContactsExtension' from project 'iosmobilesyncexplorerswift')
        Building workspace iosmobilesyncexplorerswift with scheme iosmobilesyncexplorerswift
(4 failures)
wmathurin commented 1 week ago

forceios job now passing: https://app.circleci.com/pipelines/github/forcedotcom/SalesforceMobileSDK-Package/1012/workflows/a1d691d2-7ca0-4593-8bcc-c1bb6446b74d/jobs/16481

It was failing before: https://app.circleci.com/pipelines/github/forcedotcom/SalesforceMobileSDK-Package/1011/workflows/54692241-dc69-480d-be87-2bcb9d8e51bf/jobs/16470