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

SwiftRuntimeSupport 0.2.1 give empty SwiftSupport folder #1358

Open
quentinR0bert opened this issue Apr 7, 2022 · 2 comments
Open

SwiftRuntimeSupport 0.2.1 give empty SwiftSupport folder #1358

quentinR0bert opened this issue Apr 7, 2022 · 2 comments

Comments

@quentinR0bert
Copy link

Since i have updated to the 0.2.1 version of SwiftRuntimeSupport, we have this following error from Apple :

"ITMS-90424: Invalid Swift Support - The SwiftSupport folder is empty. Rebuild your app using the current public (GM) version of Xcode and resubmit it."

I have check into the SwiftSupport folder of my .xcarchive and it contains an iphoneos but this one is empty.

So i have search into the logs on an archive, into the task of the SwiftRuntimeSupport : "_SRSCopySwiftDependencies"

I can see that the 0.2.0 copy the required dylib and the 0.2.1 not.
The difference beetween the two is the path of the swift version :
"Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphoneos" for the 0.2.0
"Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/iphoneos" for the 0.2.1
It's consistent with this modification onto the iOS/SwiftRuntimeSupport/source/SwiftRuntimeSupport.targets.

But if we look into the swift-5.5/iphoneos folder we can see that all the dylib of Apple is missing and only contains "libswift_Concurrency.dylib"

So it's seems that Apple have changed the SwiftSupport systeme and that the _SRSCopySwiftDependencies actually not adapted for this new system

PS : The logs
log_2_0.txt
log_2_1.txt

@vmtvv
Copy link

vmtvv commented Apr 21, 2022

Experience the same problem when trying to deploy a build with updated SwiftRuntimeSupport package to the App Store.

@lassana
Copy link

lassana commented Apr 21, 2022

Same here, _SRSCopySwiftDependencies does not copy Swift dylibs when archiving.

Target "_SRSCopySwiftDependencies" in file "/Users/user/.nuget/packages/xamarin.ios.swiftruntimesupport/0.2.1/buildTransitive/Xamarin.iOS.SwiftRuntimeSupport.targets":
  Task "Message"
    Copying Swift Frameworks dependencies for bin/iPhoneSimulator/Debug/device-builds/ipad (5th generation)-11.4/App.iOS.app/App.iOS to the bin/iPhoneSimulator/Debug/device-builds/ipad (5th generation)-11.4/App.iOS.app/Frameworks folder.
  Done executing task "Message".
  Task "Exec" skipped, due to false condition; ('$(_CodeSigningKey)' != '') was evaluated as ('' != '').
  Using "Exec" task from assembly "/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/../iOS/Xamarin.iOS.Tasks.dll".
  Task "Exec"
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool --copy --verbose                             --scan-executable 'bin/iPhoneSimulator/Debug/device-builds/ipad (5th generation)-11.4/App.iOS.app/App.iOS' --scan-folder 'bin/iPhoneSimulator/Debug/device-builds/ipad (5th generation)-11.4/App.iOS.app/Frameworks/' --scan-folder 'bin/iPhoneSimulator/Debug/device-builds/ipad (5th generation)-11.4/App.iOS.app/PlugIns/' --platform 'iphonesimulator' --toolchain '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/' --destination 'bin/iPhoneSimulator/Debug/device-builds/ipad (5th generation)-11.4/App.iOS.app/Frameworks/' --resource-destination 'bin/iPhoneSimulator/Debug/device-builds/ipad (5th generation)-11.4/App.iOS.app/' --resource-library libswiftRemoteMirror.dylib --unsigned-destination 'obj/iPhoneSimulator/Debug/device-builds/ipad (5th generation)-11.4/SwiftSupport' --strip-bitcode --strip-bitcode-tool '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip' --emit-dependency-info 'obj/iPhoneSimulator/Debug/device-builds/ipad (5th generation)-11.4/SwiftStdLibToolInputDependencies.dep' --source-libraries '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/iphonesimulator'
  Done executing task "Exec".
Done building target "_SRSCopySwiftDependencies" in project "App.iOS.csproj".

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

3 participants