Open quentinR0bert opened 2 years ago
Experience the same problem when trying to deploy a build with updated SwiftRuntimeSupport package to the App Store.
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".
Since i have updated to the 0.2.1 version of SwiftRuntimeSupport, we have this following error from Apple :
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