Skip to content

Commit 273f739

Browse files
authored
Update app-sdk-ios.md
Added Appstore Submission Note
1 parent 6d3be35 commit 273f739

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

memdocs/intune/developer/app-sdk-ios.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ To enable the Intune App SDK, follow these steps:
8080

8181
:::image type="content" source="media/app-sdk-ios/intune-app-sdk-ios-linked-framework.png" alt-text="Intune App SDK iOS Framework: Xcode Frameworks, Libraries, and Embedded Content sample":::
8282

83+
> [!NOTE]
84+
> If you use the framework, you must manually strip out the simulator architectures from the universal framework before you submit your app to the App Store. See [Submit your app to the App Store](#submit-your-app-to-the-app-store) for more details.
85+
8386
**Option 2 - Static Library**: Link `libIntuneMAMSwift.xcframework` and `IntuneMAMSwiftStub.xcframework` to the target: Drag `libIntuneMAMSwift.xcframework` and `IntuneMAMSwiftStub.xcframework` to the **Frameworks, Libraries, and Embedded Content** list of the project target.
8487

8588

@@ -1046,3 +1049,22 @@ Yes! Please see the [Chatr sample app](https://github.com/msintuneappsdk/Chatr-S
10461049
### How can I troubleshoot my app?
10471050

10481051
The Intune SDK for iOS 9.0.3+ supports the ability to add a diagnostics console within the mobile app for testing policies and logging errors. `IntuneMAMDiagnosticConsole.h` defines the `IntuneMAMDiagnosticConsole` class interface, which developers can use to display the Intune diagnostic console. This allows end users or developers during test to collect and share Intune logs to help diagnose any issue they may have. This API is optional for integrators.
1052+
1053+
1054+
## Submit your app to the App Store
1055+
1056+
Both the static library and framework builds of the Intune App SDK are universal binaries. This means they have code for all device and simulator architectures. Apple will reject apps submitted to the App Store if they have simulator code. When compiling against the static library for device-only builds, the linker will automatically strip out the simulator code. Follow the steps below to ensure all simulator code is removed before you upload your app to the App Store.
1057+
1058+
1. Make sure `IntuneMAM.framework` is on your desktop.
1059+
1060+
2. Run these commands:
1061+
1062+
```bash
1063+
lipo ~/Desktop/IntuneMAM.framework/IntuneMAM -remove i386 -remove x86_64 -output ~/Desktop/IntuneMAM.device_only
1064+
```
1065+
1066+
```bash
1067+
cp ~/Desktop/IntuneMAM.device_only ~/Desktop/IntuneMAM.framework/IntuneMAM
1068+
```
1069+
1070+
The first command strips the simulator architectures from the framework's DYLIB file. The second command copies the device-only DYLIB file back into the framework directory.

0 commit comments

Comments
 (0)