iOS crashes when I try to test with TestFlight
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
### Description
I have an application that only communicates via Bluetooth with an external chip. In debug mode (I use Rider) it works normally, but when I upload it using Transporter and test it through TestFlight, it crashes right at the SplashScreen. The only error log is:
```
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: TApp [28764]
```
I removed the entire library I use from Plugin.BLE, removed services, and tried a clean initialization, and the same error still persists. Below I’ll include all the initialization code;
csproj:
```
C:\Android\android-sdk
net10.0-android;net10.0-ios;net10.0-maccatalyst
$(TargetFrameworks);net10.0-windows10.0.19041.0
Exe
BV8.App
true
true
enable
enable
pt-BR
BV8 Power
com.bv8.app
1.1
80
12.2
13.1
21.0
10.0.17763.0
10.0.17763.0
6.5
iPhone Distribution
AppStoreConnectProfileBv8Dist
iPhone Developer
DevelopmentProfilebv8
True
True
AppResources.resx
MenuItems.xaml
Code
Designer
```
MauiProgram.cs:
```
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
try
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp();
return builder.Build();
}
catch (Exception e)
{
throw new Exception("Erro ao inicializar: " + e.ToString());
}
}
}
```
App.cs:
```
public partial class App : Application
{
public App()
{
var CleanPage = new ContentPage
{
Content = new VerticalStackLayout
{
Padding = 20,
Children =
{
new Label
{
Text = "Clean Initialization",
FontSize = 18
},
new Label
{
Text = "v" + AppInfo.VersionString + "." + AppInfo.BuildString,
FontSize = 18
},
}
}
};
MainPage = CleanPage;
}
}
```
App.xaml:
```
```
### Steps to Reproduce
1. New botnet maui,
2. Same configuration
### Link to public reproduction project repository
_No response_
### Version with bug
10.0.20
### Is this a regression from previous behavior?
No, this is something new
### Last version that worked well
_No response_
### Affected platforms
iOS
### Affected platform versions
_No response_
### Did you find any workaround?
_No response_
### Relevant log output
```shell
```
Contributor guide
Research direction
Start by comparing the Release and Debug settings in the supplied .csproj, then inspect MauiProgram.cs, App.cs, and App.xaml in a minimal new MAUI project. Reproduce the TestFlight launch crash and collect a diagnostic crash log beyond the SIGABRT entry; done means identifying the Release-only cause and confirming that the app launches through TestFlight.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, ios
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100