-
Notifications
You must be signed in to change notification settings - Fork 686
Adding a reference to Xamarin.iOS.SwiftRuntimeSupport breaks build #1198
Comments
Not sure if its the same problem, but this package has been giving me grief as well lately...
|
Having the same issue here with version 0.2.1. @tompi did you find a solution? |
Hi,
please, has anyone found a solution? |
Does anyone found a solution? |
Adding this to your csproj might fix it: <Target Name="_SRSCopySwiftSupport" /> Note that you'll also have to make sure the min iOS version (the SupportedOSPlatformVersion property in the csproj) is at least 12.2. |
I think I fixed this in PR #1431 |
Issue present in MacOS sonoma with the latest VS and xcode 15
@tompi @Totonti @mrrenaud @rolfbjarne any insights on this? (the path @albertb22 Any idea when Xamarin.iOS.swiftruntimesupport 0.2.2 will be available? |
@WanftMoon did you try the workaround here: #1198 (comment)? |
Yeah, tried in the native binding, then the lib wrapping the native binding and then in the iOS project, then tried all of the 3. |
@rolfbjarne Got it working!! I had the swift package in the native bidings, so i just removed from it and added it to the target iOS project. Then VSMac finally got to archive it. But if I may question, the |
It looks like it's not needed if you set the deployment target to at least iOS 12.2, but I might be wrong. Note that you might also get the reference through another NuGet package, so it might not be that easy to remove the reference. |
Create a new Xamarin forms project. Build and deploy it to iOS 14.5. Everything works. Add the Nuget package Xamarin.iOS.SwiftRuntimeSupport and I receive the following error:
Error The command "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool --copy --verbose --sign 'XXXXXX' --scan-executable 'bin/iPhone/Debug/device-builds/iphone12.1-14.6/App8.iOS.app/App8.iOS' --scan-folder 'bin/iPhone/Debug/device-builds/iphone12.1-14.6/App8.iOS.app/Frameworks/' --scan-folder 'bin/iPhone/Debug/device-builds/iphone12.1-14.6/App8.iOS.app/PlugIns/' --platform 'iphoneos' --toolchain '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/' --destination 'bin/iPhone/Debug/device-builds/iphone12.1-14.6/App8.iOS.app/Frameworks/' --resource-destination 'bin/iPhone/Debug/device-builds/iphone12.1-14.6/App8.iOS.app/' --resource-library libswiftRemoteMirror.dylib --unsigned-destination 'obj/iPhone/Debug/device-builds/iphone12.1-14.6/SwiftSupport' --strip-bitcode --strip-bitcode-tool '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip' --emit-dependency-info 'obj/iPhone/Debug/device-builds/iphone12.1-14.6/SwiftStdLibToolInputDependencies.dep' --source-libraries '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphoneos'" exited with code 255. App8.iOS C:\Users\xxx.nuget\packages\xamarin.ios.swiftruntimesupport\0.2.0\buildTransitive\Xamarin.iOS.SwiftRuntimeSupport.targets 19
How do I investigate what code 255 is? If I remove the package, everything builds and deploys normally.
The text was updated successfully, but these errors were encountered: