Cannot install the app while installing an archive build - ios

currently I'm working on a flutter project and I'm new to it. The app is working fine on android device and iOS simulator. But when I try to run the app on iOS real device I'm getting issues. I tried in two ways,
I took a direct run build to a real device, and that time it is working and app is installed on my phone. But when I open the same app after disconnecting the connection between phone and Xcode, or when open after killing the direct run, it is simply opening the app and immediately closing. And showing no errors.
And I took an archive build, using diawi.com I convert .ipa file into a link, and when I try to install the app, after showing the animation of downloading and installing the app turns to a disable look(app icon changed to grey color) and when I open the app it says, cannot install the app.
I don't know why it is happening. I tried through Automatically and manually code signing style. But in both case I'm getting this issue. But when I run a simulator there is no issue. Please help me to fix this.

Related

Flutter Plugin - Example App - Only runs via Xcode, not by itself

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.

Blank screen when I release my app on app store

when I archive my app and send the build to app store for review, the approver said me the app starts with blank screen. I tried to replicate the issue on simulator in different ways without success:
On xcode: product>scheme>Edit Schema I select Build Configuration "Release"
I changed the build settings in Xcode in the Debug configuration and temporarily turn up the optimisation level from (-O0) to (-O3 or -Os)
The app works fine on simulator without error, If I archive the application and I distribute it with ad-hoc option and I install manually on my device the app works fine too.
The only way to reproduce the problem is distribute the buid to app store and install it via test flight but i can't debug it.
Someone does anyone know what may be causing the problem? I think it could be a configuration problem.
A couple things to try:
Delete the app from your device before installing it from the Xcode debugger.
Install the app using USB with the device in Airplane mode and WiFi turned off.

over-the-air ipa download crashes on splash

I created an app with Nativescript + Angular, the app is running fine on the simulator and when the app is running using 'tns run ios' on my connected iPhone. However when archiving the project to an .ipa and use a link to download the app from my server it crashes or gets stuck on the splash screen. The console doesn't really show any errors.
I've archived the app using Nativescript Sidekick, NS CLI and Xcode but all methods result in the same error. I'm using a developing provision profile that shows no errors in Xcode when assigned manually.
Does anyone have experience with this problem and knows how to fix it?

App work's fine when device connected to Xcode, but fails when installing ipa, on specific location

i am using Xcode 6.2(beta), facing issue i.e My app work's fine when device connected to Xcode, but fails when installing ipa, on specific location, when the app crash on specific location, i am able to get the crash location and line number using crash log (when app is installed and it get crash), so debugging on installed app is quite tedious, and why the app is running smooth when device connected to Xcode. please help or any way to make app running consistently on both way while connected to Xcode and on installing ipa.
Also i am coding in Swift 1.2
I think one of your project document file not set the target.Please check all project file target.

iOS app only works when installed through xcode

I have an app, that install and runs fine, when being installed on device, through xcode.
I can archive the project just fine without any warnings or errors, but when i try to install the .ipa file through itunes, my app starts fine, but then the screen is just black.
The app is using the camera, and for me, without any good experience with this iOS developing, i would say, it feels like the camera is not turning on.

Resources