I have created an iOS application using NativeScript.
I am hoping to include an iOS Safari Extension. So I opened the iOS Workspace that was provided from the nativescript build.
I then added the target via the following steps:
I had hoped that after running this build, and embedding the extension, the default extension would appear in iOS Safari. However it doesn't. Has anyone got any ideas or any similar problems that may happen with frameworks such as React Native, Flutter etc?
Related
I am trying to run the initial example apps generated by the Kotlin Multi Platform Mobile plugin in Android Studio. I followed these steps for my environment setup. The Android Simulator runs correctly, but the iPhone Simulator does not. The Run Configuration has the following error:
Error: Selected scheme "iosApp" does not support "iphonesimulator"
When I run the configuration (ignoring the error), the iPhone simulator does open and appears to load iOS, but it never loads the "Hello, iOS" application that is in Android Studio.
What would cause this?
Version Information:
macOS 12.2.1
Android Studio 2021.1.1 Patch 2
Xcode 13.3
I fixed it with the following method.
Please close the Android Studio.
Go to ~/Library/LaunchAgents/ folder and delete com.jetbrains.AppCode.BridgeService.plist there.
Launch Android Studio with the KMM plugin again. It should work now.
From my tests, it seems that there may be multiple reasons for which we receive this error:
the root folder of the ios project has a different name than the .xcodeproject file. Sometimes it works even if they are different and maybe it matters if we change this name after the frameworks was already connected to the iOS project.
"Other linker flags" were manually copied and they were not copied using the copy button from the Connect the framework to your iOS project. This results to wrong data like:
"$(inherited)",
"-framework",
"shared\n",
instead of
"$(inherited)",
"-framework",
shared,
I managed to fix this by going into Edit Configurations on Android Studio and choosing the location of my XCode project file again. I believe this is an error of the KMM plugin in Android Studio and has yet to be fixed.
Updating Android Studio and KMM plugin worked for me.
I'm new to flutter, after native coding Android and ios, in Android Studio and XCode.
In flutter, I'm writing the code in Android Studio, and testing from there. This all works well for android devices. When I test on ios devices, if I run the app from android studio onto my iphone, it takes age to build. If however, I open the runner project in xcode, and run it from there, it works fine. What I am asking is, does it make any difference if I test my ios device by running the project from xcode or not?
Thanks for the basic question, I'm new to flutter!
I find it odd that it builds so much more quickly directly from Xcode, as all the other two IDEs are doing are building with Xcode via terminal commands, but to answer your question, the output to the device/emulator will be the same either way.
We've created a small project in phonegap on the PC in a www folder. I have moved the files on to the Mac but I can't figure out how to load it into xcode to edit the HTML further and to build/run it in the emulator or on my device.
I've never used xcode before and don't really understand how projects fit and work. I've tried to follow the Adobe Phonegap instructions I can't work out how to open an existing www phongap folder and there's no 'new cordova project' in xocde when creating a project as it shows in the adobe instructions, despite installing node.js, cordova and phonegap as instructed in various instructions I've tried?
I have phongap installed and can create a helloworld app in the phonegap Gui but again, can't figure out how to load it into xcode to build/run? I'm obviously not understanding the how xcode fits in with phonegap etc. and once this falls in to place I'm sure I'll be cooking on gas. Any help would be appreciated :) Thanks :)
cordova platform add ios
and then
cordova build ios
Then you will find the Xcode project folder in your YourApp/platforms/ios/YourApp.xcodeproj within your project. Just import it with XCode.
But Cordova will automatically build your app and emulate it by just using:
cordova run ios
I'm new to Xamarin.
My goal is to develop an app for both Android and Windows phone platforms, without IOS. I dont have any mac to test.
Under the properties solution, I already tried to remove IOS from the targets platform, but doesn't allow me. It's mentioned that its
Thats the solution i tried withou sucess:
Remove ios, windows8, and wp8 from Xamarin Forms PCL - nuget 3.0 opt-into error?
Please help.
It doesn't really matter! It doesn't mean you are actually stuck with iOS in any way.
The only thing it means is that the set you have selected is also compatible with the libraries in Xamarin.iOS. So it means that you could create an iOS project without too much trouble if you would want to in the future.
If you do not create an iOS project, you won't get an iOS app.
I was running Windows 7 desktop only. My next project is about a social network app created from my fellow programmer. Check out his XCode project at GitHUB repository right here.
He asked me to convert this iOS compatibile into an Android compatible app so that his created app can now run on Android.
I discovered PhoneGap Build, an online app converter that requires to copy the URL of a GitHub repository and in order to make the conversion successful, I have to implement some kind of PhoneGap engine (Cordova.jar, HTML5 [index.html], and a simple Javascript).
It's preferred to do this in Xcode, but Xcode requires Mac OS X. Is there another way, if it's possible, to add a PhoneGap engine without Xcode?
Here's the reason why I have to update and added the PhoneGap without using XCode since I'm running on Windows 7 before taking a second attempt to convert it using PhoneGap Build. Here's the picture:
PhoneGap allows a developer to build a native application using HTML5 - essentially, the web application is packaged into a native application container that simply renders a webview then loads the index.html from the web app into that webview and passes control to the web app.
There is no conversion of a native iOS application into an Android application.
You do not need Xcode to package PhoneGap apps using PhoneGap Build - all you need is the web content for your app. When you initiate the build process, the Build service packages your web app into native apps for Android, BlackBerry, iOS, webOS, Windows Phone.
You can learn a lot about PhoneGap in my book PhoneGap Essentials - www.phonegapessentials.com.