I'm trying to run the flutter app from Xcode to the simulator but every time I face build-time errors.
I don't know how to handle these errors from Xcode cuz I'm new to ios development.
But I don't see any errors while launching the flutter app from vscode
My pubspec dependencies are already on the latest versions.
In screenshot below, firebase auth , dkphotoimage causes the error but they are already on latest versions
How can I solve this?
Here is the image
Related
I added some images to my Flutter app using XCode, then I closed it and opened VS Code to build the app (since I always use VS Code).
I'm always getting this error:
Error (Xcode): unable to attach DB: error: accessing build database "/Users/username/Library/Developer/Xcode/DerivedData/Runner-biyumwxiyqxyjkacscuqcbwbjroj/Build/Intermediates.noindex/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location.
Could not build the application for the simulator.
Error launching application on iPhone 13.
I tried to do some changes like "flutter clean" and reinstalling Pod files.
I also tried to use an old "ios" folder but it doesn't solve the issue.
Finally I tried to use Android Studio but nothing changes.
This happens with XCode closed.
Some advices?
I am having issues running my Flutter apps on my iPhone 11 device. The app runs fine on the simulator. It is when I install it on my device with flutter run that the problem occurs. I ran flutter doctor and it said there were no issues found.
What is happening is that the app installs on the device seemingly fine. However, when you launch it (and trust the developer in iOS settings), the app just crashes.
I tried testing this with a fresh Flutter app, to see if it was a problem with the recent update to 1.12.13 hotfix 8. And, even the fresh app is crashing on my phone.
Is there a solution for this problem or am I going to have to downgrade to an older version of Flutter?
Thanks
I have an Ionic 3 App using Enterprise Distribution for a client and of course Apple likes to change settings on their new iOS. Everything was working fine on iOS 11 and when a client-user upgraded to iOS 12 their app completely broke and could not re-download.
Steps I've Tried:
Check iOS Provisioning Profile Status
Rebuild App in Xcode 10.0
Archive and create new manifest and .ipa file for app
Rebuild app in npm using ionic cordova build ios --prod
Update any plugins that we're needing updates using npm outdated
Commit and Push to Production branch using ionic Deploy
Everything I've tried allowed me to build the app successfully and I was able to build the app locally on my device via Xcode, but as soon as I put the .ipa file on our server the app will not successfully download.
I have a feeling it may be a particular setting in Xcode, but I'm stuck right now. Any help would be appreciated.
Edit: After the update of Xcode 10, the app would no longer build successfully after running ionic cordova build ios
So the issue was never apparent, but I somehow fixed the issue by removing the other branch from git and Ionic deploy and kept the Production branch active on the latest commit. I also created the certificate profile on Ionic Deploy using the Enterprise Developer Certificate and Provisioning Profile and packaged my app. I used the .ipa file from Deploy and threw it on the server and it worked like a charm.
EDIT: I finally found documentation on why the app breaks. When Xcode 10 was released, Apache Cordova did not and still does not have support for iOS if the user has Xcode 10 downloaded to build in the terminal. Link provided here: Xcode 10 Support.
When building the app using ionic cordova build ios or ionic cordova run ios
You must run it like this: ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0". More information in the link provided.
EDIT: More possible answers can be found here. In some cases, users are experiencing similar yet different issues.
When I debug and deploy Xamarin.iOS native app to iOS simulator 8.1 through XS(in Mac), it installs app to simulator but it closes automatically after installation. Though app deployment on iOS simulator 10 works fine. This problem is occurred after updating XS to latest version and iOS SDK update to latest version. My iOS app deployment target is 8.0. Also I made sure that Entitlements.plist is empty.
NOTE: Xcode 8 does successful installation on iOS simulator 8.1 and works fine.
Anyone knows why this problem occurs and how to resolve it ?
Clean the project, recompile it and run on simulator.
Additionally, open simulator logs using Cmd + / hotkey and see what exactly is being printed to the simulator logs when you launch your app.
I've seen similar problems which were related to the app crash on launch actually.
My unity project creates error while opens in Xcode.
The error is
clang: error: linker command failed with exit code 1
(use -v to see invocation)
So project not opens in xcode.
Xcode Version : xcode5.0
Unity Version : unity4.0
How can i escape from this issue?
I started getting a similar linking error after I had upgraded to Unity 4.2.2 (I've only ever used XCode 5 with Unity for iOS).
To fix it - I just wiped out my whole XCode project directory and re-did the build from Unity. Everything started working for me again.
So I suggest you just try wiping out your XCode directory and re-creating it from Unity.
If you've got custom code in your XCode project - maybe try generating a new XCode project in a different place just to see if it works.
Unity does not support Xcode 5 (last tested with Unity 4.2.1). I am guessing you also are encountering the following issue when you try to build and run your unity project:
UnityException: Launching iOS project via Xcode4 failed. Check editor log for details.
In order to resolve your issue, you will need to re-install Xcode 4. I recommend downloading XCode 4.6.3 by searching for it at https://developer.apple.com/downloads/. While it is possible to run multiple versions of Xcode side-by-side (i.e. 5 and 4.6.3), my experience is that Unity will always launch Xcode 5, and I wasn't able to able to find a way to change this behaviour even with renaming the 2 Xcode apps (perhaps someone else knows a way?). In my case, I had no other need for Xcode besides building Unity projects, so I just removed version 5.