Flutter build ipa does not see a native package - ios

I am developing a chat app using XMPPFramework for ios, I was building archive without any trouble till the version 2.10.2 of flutter. Running the app has no problem either in simulator or real device but just building ipa is failing.
Error log from Flutter
I've done many times pod install or pod update, no result, I'm stack.
I am using:
Xcode Version 13.2.1 (13C100)
Flutter 2.10.2
XMPPFramework 4.0.0
Swift Native language

Related

Downgrade SDK Dart to build App on MacBook

I have an old MacBook here, and I need to build an app on it to test on an iPhone, the problem is that the app was created using the newest version of flutter. And as you may know, MacBook does not allow to install Flutter in XCode older than Flutter version 13,
and I was wondering if I would downgrade the Dart/Flutter SDK I will have problems and how to solve them?
the message displayed on console is:
[!] Xcode - develop for iOS and macOS (Xcode 12.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
! Flutter recommends a minimum Xcode version of 13.
Download the latest version or update via the Mac App Store.
• CocoaPods version 1.10.1
Yes, you can install other versions of flutter to build your application with it. You can either do so manually or use the flutter version manager (fvm) for that.
Download links for all flutter releases can be found in the flutter documentation.
These older releases of flutter then have different requirements for the Xcode versions.

Flutter iOS Validation -A value for the key “WKApplication“, or “WKWatchKitApp“ if your project has a WatchKit App Extension target, is required

I working on a flutter app that interacts with a similar smaller version as watch app.
For Android I'm not faceing probelms. But I'm still struggling with iOS.
After I created the default flutter app and added a watch as target, I tried to test validate this. I archived my project with
flutter build ipa
and validated the created archive. For that I opened
My App > build > ios > archive > Runner.xcarchive
by double clicking on it. That opend Xcode and the 'archive manager'. Here I clicked on 'Validate'.
I also tried it by the 'Transproter' app.
Both validation ways are ending with this error:
Missing Info.plist value. A value for the key “WKApplication“, or “WKWatchKitApp“ if your project has a WatchKit App Extension target, is required in “Runner.app/Watch/XXXXX App.app“ bundle. For details, see: https://developer.apple.com/documentation/watchkit/creating_independent_watchos_apps/setting_up_a_watchos_project
I have no idea how I can fix this.
My current setup is:
Flutter 3.3.2 - channel stable
Dart 2.18.1
DevTools 2.15.0
Android Studio Dolphin | 2021.3.1
Xcode Version 14.0
What I also tried is: I created a new project with a normal iOS App (not flutter) and added a watch as target. This validated without any problems.
I'm facing the same issue when I want to archive and release a test version of my flutter project with a watch app in Xcode 14. I can run the whole project locally without any problem. I have no idea how to deal with it so far.
I tried to add the WKWatchKitApp key to the info.plist of the WatchKit App, but I got more errors saying that I'm missing the WatchKit App Extension' target. I'm confused about it since the Xcode 14 Release Notes said:
Xcode 14 includes a default template for watchOS apps that combines the WatchKit App and WatchKit App Extension targets into a single Watch App target, simplifying code, asset, and localization management. You can deploy single-target watchOS apps to watchOS 7 and later. (83222217)
I'm developing with:
Flutter 3.3.0
Dart 2.18.0
DevTools 2.15.0
Xcode 14.0
I'm wondering if it is caused by Xcode or the old version of Flutter.
Update: 20230211
I tried to upgrade my Flutter to 3.7.3, delete the build cache by running flutter clean, and clean the Xcode build folder. Then update and reinstall all the flutter and pod dependencies I'm using and recompile the whole project. The project can now archive and release to Testflight.

Flutter app is not building when adding Passbase

I am building flutter app with Passbase integration. I have followed all steps from here: https://docs.passbase.com/flutter and in Android it works fine. However in iOS app is not building. VSCode shows this:
Xcode build done. 11.9s
Failed to build iOS app
Error output from Xcode build:
↳
Exited (sigterm)
Could not build the precompiled application for the device.
Error launching application on iPhone.
And Xcode shows this:
Maybe it is because I run latest flutter version 1.20.4 and Passbase says that they have tested it with 1.17.5...
Any ideas what to do?
If you are using Passbase plugin version 1.9.5, you need to use Xcode 12.0. Or use plugin version 1.9.4 instead. The only change between these versions is that 1.9.5 was built using Xcode 12.0.

ERROR ITMS-90725: "This app was built with the iOS 12.1 SDK. New apps for iPhone or iPad must be built with the iOS 13 SDK or later."

I use build phonegap for build IOS app....I genarated .ipa file with last version of phonegap build but when I try yo upload .ipa file to apple store it give that error
ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 12.1 SDK. New apps for iPhone or iPad must be built with the iOS 13 SDK or later."
what should I do?
You'll need to use a service which does support the latest version of XCode (currently 11.6), like VoltBuilder, Ionic or Monaca. It doesn't look like PhoneGap is ever going to be updated.
Disclosure: I'm one of the developers of VoltBuilder.
Currently there is no way to build on PhoneGap Build Cloud targeting iOS 13, since it requires cordova 6.0.0 and the lastest phonegap-cli avaiable is 9.0.0 which uses cordova 5.0.1 which targets iOS 12.1 and xcode 10.
You can build localy using cordova 6.0.0, if you don't have a mac you can try macincloud or another could solution as monaca and others.

Meteor app cannot be run on iOS after Xcode upgrade

I was developing Meteor project and was able to test it on both Android and iOS. But after my Xcode upgraded to version 7.3 I'm not able to test project on iOS anymore. Now I'm getting error:
Check that you have Xcode 6.x installed
Is there any way to run my project while having Xcode 7 or do I need to downgrade it? My Meteor version is 1.3

Resources