Skip to content

Commit cb88f72

Browse files
committed
Merging changes synced from https://github.com/MicrosoftDocs/memdocs (branch main)
2 parents 00d29eb + 567cc15 commit cb88f72

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

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

Lines changed: 22 additions & 2 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 Framework, you must manually strip out the simulator architectures from the universal framework before you submit your app to the App Store. For more information, see [Submit your app to the App Store](#submit-your-app-to-the-app-store).
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

@@ -1058,6 +1061,23 @@ Yes! Please see the [Chatr sample app](https://github.com/msintuneappsdk/Chatr-S
10581061

10591062
### How can I troubleshoot my app?
10601063

1061-
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.
1064+
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.
1065+
1066+
## Submit your app to the App Store
1067+
1068+
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 these steps to ensure all simulator code is removed before you upload your app to the App Store:
1069+
1070+
1. Make sure `IntuneMAM.framework` is on your desktop.
1071+
1072+
2. Run these commands:
1073+
1074+
```bash
1075+
lipo ~/Desktop/IntuneMAM.framework/IntuneMAM -remove i386 -remove x86_64 -output ~/Desktop/IntuneMAM.device_only
1076+
```
1077+
1078+
```bash
1079+
cp ~/Desktop/IntuneMAM.device_only ~/Desktop/IntuneMAM.framework/IntuneMAM
1080+
```
1081+
1082+
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.
10621083

1063-
If troubleshooting MSAL-specific errors, consider enabling the ADALLogOverrideDisabled flag in your info.plist file and configuring logging according to [MSAL documentation](/azure/active-directory/develop/msal-logging-ios?tabs=objc).

0 commit comments

Comments
 (0)