I'm using AppGyver Steroids to create an app. I want to build an iOS build of it so that I can open the app in XCode. With regular PhoneGap I can simply run phonegap build. I do not see this in Steroids. I've run phonegap build in the Terminal, but it doesn't show native elements when I run it in the simulator (from XCode) like navigation bar.
Is this possible with Steroids? Thanks!
If you're planning to use Steroids, you need to use the Steroids Build Service. To create an actual build targeting iOS platforms, please consult their guide on how to do this.
If you just are developing, use the deploy command to get the QR code and scan it with the AppGyver scanner application to load it temporarily to your device. Or if you want to run it in the emulator, start a steroids session from the terminal:
steroids connect
then enter
simulator
once you're in the steroids session and that should start the iOS simulator.
Not sure what you'd need xCode for in this. The beauty of steroids is that there is no iOS specific code for you to maintain (before you start messing with PhoneGap plugins, which is a different ballgame.) You can still open your html pages using xCode if you wish.
If you're asking how to have xCode do this stuff for you, then I could be wrong but I do not think there is a way. I believe the simulator that Steroids starts is the same as the xCode simulator.
Related
I'm creating a flutter plugin and I just tried the example project that gets created by flutter it self. This example project is an app that shows the operation system and its version. If I start it from Xcode on my iPhone SE, it works fine.
But if I close the app and open it without Xcode, that means that I tipp on the app icon to launche it, like every normal app, it doesn't start correctly.
It is showing for not even a second a white screen, followed by a black screen and is closing the app right after this.
Why is it behaving like that?
Is it, because it is a debug version and needs Xcode?
How can I put my example app on my iPhone without needing a connection to Xcode to start it?
Thanks in advance!
Edit: Thanks to the answer of Răzvan Puiu below, i know now that this is because xCode puts the app as a debug version on my iPhone. This debug version can only run with xCode. After I tried it with a 'normal' app and not the example app of a plugin project, i even got this text shown if i tried to start the debug version without xCode:
So the solution is to run the app with:
flutter run --release
I believe it behaves like that because you don't have an Apple developer account. "Without enrolling in the Apple Developer Program, your app will only last for 7 days on your device. After that, you’ll have to re-deploy it to your device via Xcode. If you’re enrolled in the Apple Developer Program, you won’t have this inconvenience."
Yes
You can run flutter run --release and then select your physical device. However the app will remain on your phone for only 7 days unless you have the Apple dev account.
I've been developing a news app with Flutter and when I build and run it through Android Studio it launches fine, but when I try to launch the app by clicking on it on the home screen, it says "in iOS 14+, debug mode flutter apps can only be launched from Flutter tooling,IDEs ....."(Screenshot attatched). Can someone tell me as to how to get around this?
Apparently, this is a known issue of Flutter on iOS 14 for apps in debug mode, see this article on the Flutter website, and this GitHub issue. So for the time being, I believe your main workarounds are the following:
Always run the app from the host PC (using flutter run, IDE debug, etc.)
Build a release version of your app (instead of debug) and use that on your device, e.g. use flutter run --release
Use a device with iOS 13 or older
Use a simulator
If you want to use the app without being connected via usb
Open the ios folder on Xcode
Make sure your device is connected
Select Product from the menu bar -> Scheme -> Edit Scheme
Or simply use the shortcut: command + >
Step 3
Change the build configure to Release
Run the app from Xcode
Disconnect your device and you're good to go!
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
Im trying to reset the iOS-Simulator using AppleScript. When I just run a script to Reset Content and Settings it just resets the current version of the iOS-Simulator (e.g. 6.0). I need to reset each iOS version in the iOS Simulator to remove all the apps. I can only use Applescript and cant delete the apps from the Simulator using bash (deleting the app folders)
Thanks
I present,
The Definitive iOS Simulator Reset Script (link)
Based on Oded Regev's code from this SO question (which was based on Jacob Rus's fine "menu_click" code)
Stian's script has not been updated for iOS 7 and the dialog isn't necessarily useful for build scripts. I've borrowed heavily from his code and written a version that is relatively future-proof to new devices and iOS versions.
https://github.com/michaelpatzer/ResetAllSimulators