Unable to run fresh kotlin multiplatform app on ios - ios

Doing a fresh install of a kotlin multiplatform app I am unable to get the ios app to run. Android works just fine. My issue is Android Studio is unable to find xcode project schemes.
Following the tutorial from kotlin lang website get started it seems like it should just be able to run: https://kotlinlang.org/docs/mobile/create-first-app.html#run-on-a-different-iphone-simulated-device.
Here are my versions:
Android Studio: 4.1.1
Xcode: 12.2 (12B45b)
EDIT 1:
Here is the error mentioned in the configuration page of android studio:
Please check specified Xcode project file: can't grab Xcode schemes with /usr/bin/xcodebuild -project /Users/ommitedforbrevity/./iosApp/iosApp.xcodeproj -list
EDIT 2:
Log also shows several errors like this: TextMate bundle load error: Bundle mdx can't be registered
I confirmed that the bundled plugin TextMate Bundles is included and enabled.

Related

Parse Issue (Xcode): Module 'fluttertoast' not found

i have flutter code which is used to build ios and android app, when code run in xcode using simulator, it runs fine, but when run in android studio or in visual studio code using
flutter run --flavor stg
get the following error :
Parse Issue (Xcode): Module 'fluttertoast' not found
GeneratedPluginRegistrant.m:131:8 Could not build the application for
the simulator. Error launching application on iPhone 13.
Please help :(
It's lookes likes you are opening incorrect file. you should open
open runner.xcworkspace ,it worked!
also run pod install in IOS directory.

Migrating Ionic project written in Windows to MacOS

I have an Ionic project. I wrote and compiled it for Android on Windows. My project is running on Android. But I don't know how to compile the project on Mac. I installed XCode. I copied
../platform/ios
folder to Mac.
I open the project. I get the error:
"Couldn't load project" "The file couldn't be opened".
How can I open the project in Xcode? Thanks.
You need to copy whole project on Mac. Then add iOS platform to it, and then you can open it in Xcode.
This guide covers how to run and debug Ionic apps on iOS simulators and devices using Capacitor or Cordova. iOS apps can only be developed on macOS with Xcode installed.
Setting up a Development Team
All iOS apps must be code signed, even for development. Luckily, Xcode
makes this easy with automatic code signing. The only prerequisite is
an Apple ID.
Open Xcode and navigate to Xcode » Preferences » Accounts. Add an
Apple ID if none are listed. Once logged in, a Personal Team will
appear in the team list of the Apple ID.
Cordova Setup
The ios-sim and ios-deploy are utilities that deploy apps to
the iOS simulator and iOS devices during development. They can be
installed globally with npm. This section is not necessary for Capacitor.
$ npm install -g ios-sim
$ brew install ios-deploy

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.

Titanium performs full rebuild after Titanium Studio 3.2

After I upgraded Titanium Studio to 3.2, whenever I build a project with SDK v. 3.2.0.GA the underlying XCode project is built from the start. This is a real pain as I have added external libraries on the XCode project and they get lost each time.
On previous versions, Studio was not doing a full rebuild so it was not even necessary to compile the project.All that was needed was to do changes, go to the emulator close the app and then reopen it.
Trying to install a pre-3.2 sdk version causes the following error Titanium SDK 3.2 [ERROR] : Invalid "--ios-version" value "7.0" 7.0.3
Could it be a flag or something else on the Studio preferences that I am missing?
Try to clean the project first (or just remove the "build" folder) and have the latest titanium cli (npm install -g titanium).
In case you have a custom Info.plist in your project try to build the proyect without it. If it works, then is something with it.

phoneGap iOs PluginManager

I use phonegap/cordova >= 3.0.0
Unfortunately I don't have an apple developer-membership.
Therefor I created a brandnew phonegap project on my mac. Without developer-key I couldn't run the project from the termina. So I opened xCode and I imported the created project. Now I put my android-project files from my windows computer into the www-order of the mac.
If I now start the app on a simulator by xCode, I always get a pluginManager message I don't understand:
Edit:
I added the plugin by console and now I get this error on xCode:
I just put the entire phonegap folder from android into the ios www folder of xCode. Do I have to readd the plugins on mac then?

Resources