Can no longer validate App in Xcode16.3

I have built an app using Xcode that calls on a couple of packages and now includes llama.xcframework (created from a .sh script that uses cmake, xcrun and xcbuild), instead of an earlier packaged version. The app builds and runs as expected. However, when an Archive is created, neither Validate App or Distribute App will work. The following error returned is...


Failed Platform Validation "MyAppName" requires the "iPhoneOS" platform to be installed.


Things I have tried:

  • Running the latest Xcode 16.3
  • Checked that the iPhoneOS platform is installed under /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
  • Confirmed that the project's build settings look correct for Target:
    • General - Destination for iPad and Mac(designed for iPad) = iOS
    • General - Min deployment iOS = 18
    • Build Settings - Targeted Device Families = iPad
    • Build Settings - Build Active Architecture Only and Build Active Resources Only = NO


The .sh script builds the iPhoneOS and iPhoneSimulator slices with Device Family set to 2 (iPad). It is modified from the GitHub version of llama.cpp's build-xcframework.sh




Mac mini

Posted on Apr 14, 2025 7:29 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 19, 2025 10:27 AM

Solved.

Whilst I had read that the settings recommended for llama.xcframework were to set to 'Embed & Sign', this was causing the issue. Selecting 'Do Not Embed' allows the App Validation to continue without failing. However, this doesn't include the framework in the build.

I checked and the build-xcframework.sh I was using for release, still had the iphonesimulator slice. Removing this and using 'Embed & Sign' to include the library allowed App Validation to pass.

Similar questions

3 replies
Question marked as Top-ranking reply

Apr 19, 2025 10:27 AM in response to MrHoffman

Solved.

Whilst I had read that the settings recommended for llama.xcframework were to set to 'Embed & Sign', this was causing the issue. Selecting 'Do Not Embed' allows the App Validation to continue without failing. However, this doesn't include the framework in the build.

I checked and the build-xcframework.sh I was using for release, still had the iphonesimulator slice. Removing this and using 'Embed & Sign' to include the library allowed App Validation to pass.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can no longer validate App in Xcode16.3

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.