Hi I'm new to Flutter and I hava specific use case that I don't know if it is possible.
Is it possible to run a IPA file for another app when I press a button in Flutter.
The IPA file comes from a XCode project, so if that is not possible is there any way to convert the XCode code to Flutter.
Is it possible to run a IPA file for another app when I press a button in Flutter.
Do you mean you want to open a different app on pressing a button in your flutter app, if yes, then sorry you can't open any app in iOS however you can do that in android using android_intent plugin.
The IPA file comes from a XCode project, so if that is not possible is there any way to convert the XCode code to Flutter.
If you mean you have an app already written in Swift or Objective-C and you want to convert it in Flutter app, then again sorry there is no way to do that, you'll have to write the code from scratch.
First, an .ipa (iOS App Store Package) file is an iOS application archive file which stores an iOS app. It is kind of binary file and cannot be converted to source code (Dart in Flutter or Swift in XCode)
Second, I think there is currently no way to convert existing XCode project (written in Swift or Objective-C) to Flutter project. You have to manually code in Flutter your self.
Related
I write flutter codes in Android studio. I using ios native codes to supply platformview integrated in flutter widget tree. But how can I debug iOS native codes?
addition: I am using iPhone simulator to debug?
You can test it by run it from XCode, here you can set breakpoint and have the same iOS native debugging experience.
Luckily run it from XCode is really easy, just open ios directory in the project and press the button to run it.
If you need more specific info let me know and I will answer you.
EDIT :
The project you need to open with XCode is:
For playing it you need to press top-left play button as in the image:
I recently had to install a react native module that needed configuring in Xcode, but I've been using Visual Studio (VS) Code for many months now on my project. So I opened the workspace file in the project's 'ios' folder.
I can not find any of my App.js code or src files while in Xcode. How do I continue my project in Xcode? Or do I need to continue using VS Code, and just run the saved files in Xcode/iPhone simulator?
p.s. I am not using Expo
You wont get any code in your xcode project, while running your app on android or ios the App.js or other react-native code is bundled, so to change or view react-native code use another editor like VS-Code or Sublime text
Xcode is for only Apple products, there is no JS(X) syntax support, eslint and etc. so, i highly recommend to continue your RN app development in another IDE/Editor, which supports JS(X) and many other major features that need for RN development.
I'm using the latest reactnative verion 0.45 and I didn't get a clue on the official doc about how to build the ios release.
About how to the running on ios device section of the doc quoted here:
Connect your iOS device to your Mac using a USB to Lightning cable.
Navigate to the ios folder in your project, then open the .xcodeproj
file within it using Xcode.
But there is no ios folder found after running command npm ios. And most StackOverflow answers like this one require a command like react-native-bundle which was not found either.
I have already got Xcode and an app develop member account and Really want to build my first reactnative app to my iphone before I could do more stuff on it.
I know this might be a very newbie question. If someone could just give some guide or throw some docs about this?
I stuck on this problem since a few days too, unless you will not get an ios or android folder any more with React Native 0.45.
You can build your standalone app by using Expo: https://docs.expo.io/versions/v17.0.0/guides/building-standalone-apps.html
As I understand, they build your app for you online, so it takes some time and require an free expo-account, but after it finised, you can download your .apk or .ipa to submit it to Play Store or AppStore.
When you want to add more custom (non javascript) code to your project and edit it in Andoid Studio or Xcode, so you have to eject your from Reative Native: https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md
After that, you can test your App by building for your own in the simulator, with no need of the Expo-App.
Open the ios folder of your project using xcode
Connect your phone and select your phone from the device selection dropdown
Select the first tab in the explorer and go to signing area, select your development team
Click play and it will install the app in your phone on development mode
For Production build, you can do the same. However, you would need to change your scheme to production:
Open scheme menu under product. From the dropdown, look all the way down, you'll find the menu Edit Scheme, select this.
Select the Release scheme, hit close and re-run your project in your phone.
Note: if you are building for release, make sure your target device is Generic iOS Device
Hope it helps! :)
A hybrid app was developed using Drupalgap cordova for iOS. The project is named ExampleApp, as followed by a tutorial, and once started in Xcode (5 and 6) the app works well in iOS simulator. Now I need to rename the app to a custom name to put it for submission in the App Store, but once I do that in Xcode, the app breaks. I followed the official Apple Support page to do that and the one here on stackoverflow with no luck. The app is present on iOS iPhone simulator dashboard with the icon and a new name, but once it starts loading the splash screen, it breaks as soon as it loads it. What is the best way to resolve this problem?
Here's what I would do:
use the PhoneGap Command Line Interface to create a new "official" project: cordova create OfficialApp com.official "OfficialApp"
add the iOS xCode project files: cordova platform add ios
install the DrupalGap SDK on top of the empty project
copy the www/app folder from ExampleApp into your new empty project's www/app folder
prepare/build the app from the terminal
test in xCode simulator
Be sure to replace any custom modifications you had to the index.html file of your new Project. More info: http://drupalgap.org/node/193
Each step of the way, I'd recommend doing a prepare/build via the terminal and then launch the app via xCode to verify PhoneGap works out of the box, then DrupalGap works out of the box, then drop your app on top and run it.
If these steps don't work, I'd recommend opening up an issue in one of the queues:
http://www.drupalgap.org/support
I know how to download files *.xcappdata from iOS device and use it during test and running simulation.
There is a similar feature for downloading data from iOS simulator?
Now I manually copy/restore application folder inside the simulator but using the xCode functionality can be very handy.
thanks.