Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom platform destination #144

Open
giginet opened this issue Sep 25, 2024 · 1 comment
Open

Support custom platform destination #144

giginet opened this issue Sep 25, 2024 · 1 comment

Comments

@giginet
Copy link
Owner

giginet commented Sep 25, 2024

The built environment installs various versions of Xcodes, then Scipio doesn't care about target SDKs.

In such a situation, Scipio picks the unspecified SDK (in most cases, latest). It occurs the following error on the linking time.

Showing All Errors Only
Cannot load module 'MyFramework' built with SDK 'iphonesimulator18.0' when using SDK 'iphonesimulator17.5': 

If the app uses the older simulator and SDKs, but all frameworks are built with the latest SDK even if using the old Xcode.

Additionally, Scipio doesn't respect the SDK version when managing caches. In short, it treats frameworks built with different SDKs as identical.

To prevent this situation, we have to support the following features.

  1. Add new options to specify the build destination
  2. Add SDK versions of each platform to the CacheKey spec.
@ikesyo
Copy link
Collaborator

ikesyo commented Nov 5, 2024

  • getting avilable sdks using xcodebuild -showsdks
  • using versioned sdk at
    var settingValue: String {
    switch self {
    case .macOS:
    return "macosx"
    case .macCatalyst:
    return "maccatalyst"
    case .iOS:
    return "iphoneos"
    case .iOSSimulator:
    return "iphonesimulator"
    case .tvOS:
    return "appletvos"
    case .tvOSSimulator:
    return "appletvsimulator"
    case .watchOS:
    return "watchos"
    case .watchOSSimulator:
    return "watchsimulator"
    case .visionOS:
    return "xros"
    case .visionOSSimulator:
    return "xrsimulator"
    }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants