I am trying to generate a build for my iOS application, I run:
dotnet publish "/SomeDirectory/MyApp/MyApp.csproj" -f net8.0-ios -c Release -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="Apple Distribution: SAMPLE MY APP (RT1234543)" -p:CodesignProvision="sample 25 03 25"
The response is
Tool xcrun execution finished (exit code = 139)
and
usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8319/tools/msbuild/iOS/Xamarin.Shared.targets(2848,3): error : strip exited with code 139
However, the dotnet build
command is able to generate the .app build, which I can sign using the codesign
command. But it gets rejected by App Store Connect (correctly) saying that it is missing the provisioning profile. Please assist, I am using:
Thanks for your sharing @Keletso Botsalano.
As an answer, if encountering the error info below
Error: strip exited with code 139
Consider upgrading to the XCode16.2 as it has been fixed in Xcode 16.2.
For more information, please refer to Regression: error : strip exited with code 139 #19157, Publish a .NET MAUI app for iOS.