Open charneykaye opened 2 weeks ago
I am having something close to this, the app builds and runs but when trying to deploy to App Store it shows the below error on the Validate stage.
Asset validation failed Bad CFBundleExecutable. Cannot find executable file that matches the value of CFBundleExecutable in the nested bundle device_info_plus_privacy [ai.noqta.app.pkg/Payload/app.app/Contents/Frameworks/device_info_plus.framework/Versions/A/Resources/device_info_plus_privacy.bundle] property list file. (ID: a03c52ed-8d6c-4ff5-a812-3844d8ce792a)
The error may give some hints:
/Users/kaye375751/.pub-cache/hosted/pub.dev/package_info_plus-8.1.0/macos/package_info_plus/Sources/package_info_plus/include/package_info_plus/FPPPackageInfoPlusPlugin.h:5:9: error: 'FlutterMacOS/FlutterMacOS.h' file not found
It's weird that it cannot find that dependency. I think your pods file/folder may be in a bad state, reruning pod install
and/or nucking the whole podfile.lock and folders may help too.
You can try sharing your podfile as well it may have something wrong in it.
Our CI builds correctly: https://github.com/fluttercommunity/plus_plugins/actions/runs/11562661071/job/32184333275?pr=3337
Thanks @miquelbeltran - I have tried these steps to nuke the Podfile to no avail (for the macos desktop build)
$ rm macos/Podfile
$ rm macos/Podfile.lock
$ cd macos && pod cache clean --all && cd ..
$ flutter clean
$ flutter pub get
I will next try rebooting my laptop 🧐 and maybe setup a CI build based on that workflow you shared, to see if it has better luck.
Here's what I tried next:
flutter create demo
So, something is going wrong in my local environment.
Chip | Memory | macOS | XCode |
---|---|---|---|
Apple M1 Pro | 16 GB | 14.7.1 (23H222) | Xcode 16.1 Build version 16B40 |
Launching lib/main.dart on macOS in debug mode...
Running pod install...
Building macOS application...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006000-001851E921D2801E, name:My Mac }
{ platform:macOS, arch:x86_64, id:00006000-001851E921D2801E, name:My Mac }
/Users/kaye375751/om/demo/macos/Pods/Target Support Files/package_info_plus/package_info_plus-umbrella.h:13:9: error: double-quoted include "FPPPackageInfoPlusPlugin.h" in framework header, expected angle-bracketed instead
/Users/kaye375751/.pub-cache/hosted/pub.dev/package_info_plus-8.1.0/macos/package_info_plus/Sources/package_info_plus/include/package_info_plus/FPPPackageInfoPlusPlugin.h:5:9: error: 'FlutterMacOS/FlutterMacOS.h' file not found
/Users/kaye375751/om/demo/build/macos/Build/Intermediates.noindex/Pods.build/Debug/package_info_plus.build/VerifyModule/package_info_plus_objective-c++_arm64-apple-macos10.14_gnu++20/Test/Test.framework/Headers/Test.h:1:9: error: (fatal) could not build module 'package_info_plus'
/Users/kaye375751/om/demo/build/macos/Build/Intermediates.noindex/Pods.build/Debug/package_info_plus.build/VerifyModule/package_info_plus_objective-c++_arm64-apple-macos10.14_gnu++20/Test/Test.mm:1:9: error: (fatal) could not build module 'Test'
/Users/kaye375751/om/demo/build/macos/Build/Intermediates.noindex/Pods.build/Debug/package_info_plus.build/VerifyModule/package_info_plus_objective-c_arm64-apple-macos10.14_gnu17/Test/Test.framework/Headers/Test.h:1:9: error: (fatal) could not build module 'package_info_plus'
/Users/kaye375751/om/demo/build/macos/Build/Intermediates.noindex/Pods.build/Debug/package_info_plus.build/VerifyModule/package_info_plus_objective-c_arm64-apple-macos10.14_gnu17/Test/Test.m:1:9: error: (fatal) could not build module 'Test'
** BUILD FAILED **
Error: Build process failed
Platform
macOS Sonoma 14.7.1 building for iOS simulator or macOS desktop
XCode
16.1
Plugin
package_info_plus
Version
8.1.0
Flutter SDK
3.5.3
Steps to reproduce
I added the
package_info_plus
plugin to get the build number. I can build OK for Android or Windows desktop. However, attempting to build for iOS or macOS results in these errors.Logs
Flutter Doctor