Skip to content

Commit 2dd9925

Browse files
Add information about UseInterpreter and CheckEolTargetFramework properties. AoT issue may happen during publish on own projects.
1 parent b484644 commit 2dd9925

File tree

1 file changed

+38
-0
lines changed
  • articles/tutorials/advanced/MobileDeployment/06_publishing_ios

1 file changed

+38
-0
lines changed

articles/tutorials/advanced/MobileDeployment/06_publishing_ios/index.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,44 @@ dotnet publish -c Release -f net10.0-ios -r ios-arm64 -p:ArchiveOnBuild=true
229229

230230
This will create an IPA file in your publish folder which you can upload to the AppStore.
231231

232+
Some other options for the project file that have helped make an ipa.
233+
234+
### **UseInterpreter** setting
235+
236+
If you encounter an exit code of 134 during (Ahead of Time) AOT compilation during the **dotnet publish** phase, then set this property to **true**.
237+
238+
e.g.
239+
240+
```sh
241+
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/targets/Xamarin.Shared.Sdk.targets(1387,3): error : Failed to AOT compile aot-instances.dll, the AOT compiler exited with code 134.
242+
```
243+
244+
This setting tells the build system to disable full Ahead-Of-Time (AOT) compilation and instead rely on the Mono Interpreter for the managed C# code.
245+
246+
Setting the csproj file:
247+
248+
```xml
249+
<PropertyGroup>
250+
<UseInterpreter>true</UseInterpreter>
251+
</PropertyGroup>
252+
```
253+
254+
### End of Life Target warning
255+
256+
Suppressing the End of Life (EoL) warning can be done with the **CheckEolTargetFramework** setting.
257+
258+
```sh
259+
error NETSDK1202: The workload 'net8.0-ios' is out of support and will not receive security updates in the future.
260+
```
261+
262+
Setting in the csproj file to suppress the warning:
263+
264+
```xml
265+
<PropertyGroup>
266+
<CheckEolTargetFramework>false</CheckEolTargetFramework>
267+
</PropertyGroup>
268+
```
269+
232270
## Upload Method using Transporter
233271

234272
You can use the **Transporter** tool to upload your IPA file and that can be found in the **Applications** folder.

0 commit comments

Comments
 (0)