Errors when trying to test app on iPhone - ios

When I try to test my app on the iPhone I get the following errors:
However I do not get these errors when running on the iOS Simulator.
Anyone know why?

You need to add the AVFoundation framework for this to work, through the target page in Xcode. The Simulator, since it's running on OS X, handles things related to frameworks differently then the device does.

Related

React Native app works on simulator but stuck on a black screen when installed on device through TestsFlight

I'm building a React Native which works fine when I run it on the simulator. However when I package it and put it on the Apple TestFlight, the app doesn't run on devices. All I see is a black screen.
I'm using the MongoDB Realm SDK if that may hold a clue to the problem. I'm fairly new to iOS development and only have the simulator to test the app.
Any ideas on how I can resolve this? Thank you!
Update: I tested the app on an iPod touch (iOS 14) and it works. So the problem seems occur only on iPhones.
This usually means that your app has crashed...Try using componentDidCatch and show an alert or something to get the error or try using sentry.io to catch crashes

Error running app on devise dyld_shared_cache_extract_dylibs failed

I have Xcode 10.3 and iPhone 11. When I run the project there are no errors. It compiles, and then throws an error
dyld_shared_cache_extract_dylibs failed
In the Devices and Simulators window, my iPhone 11 defines it as iPhone 4. I think the problem is somewhat related to this. Because iPhoneX on the same system (13.3.1) starts up normally.
I watched a lot of sites where they say add files, etc., but that doesn’t help me.
I will be grateful for the help

Build-time errors when targeting device, fine in simulator

I have recently made two Frameworks (Extensions & SpotifyAPI), which are targeting iOS 10 just like my project. My phone is running iOS 12 beta (16A5345f). Xcode is running Version 10.0 beta 6 (10L232m).
Here is the project when I target the simulator or my device:
Ignore the warnings, they are expected. The errors are not expected.
For a reason I don't know, the Frameworks don't seem to be recognised when my iPhone is targeted. ALL these errors are functions, variables etc, which are apparently "unresolved identifiers" or "undeclared types" or "has no members" from my Frameworks.
Why does this only work for the simulator, and not my device? Is my Framework not supporting a certain type of architecture?
Here is my hiarachy:
I tried to run it in Xcode 9, but I got this:
So I deleted and reinstalled Xcode 10 but still with no luck.
How can I allow my project to run on my device?
If you have any questions, please ask!
Well this was frustrating... but I know people will come across this problem in the future, so here the answer is. All you need to do is build the Frameworks targeting your iOS device, and then it will work completely fine. Apple, couldn't you make it any clearer?
However, this causes the opposite problem, that the device no longer works in the simulator. 🤔
EDIT:
I found this Medium post about how to make a universal framework, and got it to work 😀

Xcode won't recognize my iOS device

I am trying to compile my Xcode project on my iPad but I'm getting an error that says my iPad can't be recognized, my device is updated to the latest firmware 9.1 as well as my Xcode compiler. At first I got an error saying Xcode cannot run using the selected device, then I unplugged my device and plugged it back in because I was unsure of what to do.
I also tried testing my project using an iPhone device and the error I got was different. The error said: No code signing identities found, I'm not concerned about the iPhone error because my app was meant for the iPad, I thought i'd point it out because it might give you an idea of why my compilation isn't working.
I cleaned the project and restarted Xcode to see if that would fix it but it didn't.
Please help me get by this, Thanks in Advance.
Maybe, the OS version of your device (iPad) is lower than Deployment Target in General tab of the target. Choose another Deployment Target which is lower or equal the iPad OS version.
You need to launch the app on your device manually once and tap on "Trust" on the pop-up before you can run it in the debugger (XCode).

Unable to profile using Instruments on iPad 1 using XCode 5

I have an application built against iOS 7, but targeted for iOS 5.1 since I only have an iPad 1 available for testing. It's an all native library, with very minimal iOS dependencies. I am able to run the app on my iPad just fine, but when I try to Profile it, XCode 5 immediately changes the status to 'Finished running on iPad', and the Instruments window shows a warning saying 'This device does not support this instrument'. I see this behavior regardless of which instrument I choose from the Instruments panel.
I have tried other suggestions from similar issues posted on Stackoverflow such as
1. Cleaning my app and rebuilding
2. Restarting XCode
3. Deleting my app from the device
4. Changing the deployment target from 'iPhone/iPad' to just 'iPhone'
None of these have helped me get over this problem. Is there something fundamentally not supported in the configuration that I am trying to run ? Since the app runs correctly on the iPad, this seems like just a problem with Instruments compatibility, so I welcome any comments / suggestions on resolving this.
Thanks.

Resources