You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an extension scheme contains application target. wasCreatedForAppExtension becomes false.
In SchemeGenerator.
if let targetName = scheme.run?.executable {
schemeTarget = project.getTarget(targetName)
} else {
guard let firstTarget = scheme.build.targets.first else {
throw SchemeGenerationError.missingBuildTargets(scheme.name)
}
let name = scheme.build.targets.first { $0.buildTypes.contains(.running) }?.target.name ?? firstTarget.target.name
schemeTarget = target ?? project.getTarget(name)
}
If enables askForAppToLaunch, the scheme.run?.executable is Ask on Launch
So schemeTarget is nil -> wasCreatedForAppExtension is false.
Disable askForAppToLaunch to run else block still not working in this case.
In Project.init(spec:) spec.resolvedDictionary() sorts targets so the first target is sample not sampleShare. schemeTarget is sample -> wasCreatedForAppExtension is false.
any suggestions?
The text was updated successfully, but these errors were encountered:
sample.zip
When an extension scheme contains application target.
wasCreatedForAppExtension
becomesfalse
.In
SchemeGenerator
.If enables
askForAppToLaunch
, thescheme.run?.executable
isAsk on Launch
So
schemeTarget
isnil
->wasCreatedForAppExtension
isfalse
.Disable
askForAppToLaunch
to runelse
block still not working in this case.In
Project.init(spec:)
spec.resolvedDictionary()
sorts targets so the first target issample
notsampleShare
.schemeTarget
issample
->wasCreatedForAppExtension
isfalse
.any suggestions?
The text was updated successfully, but these errors were encountered: