Unable to locate DeviceSupport directory - trigger.io

I am getting this error (see below)
I have had xcode installed all the time nothing has changed other than updates to trigger, is there something I can do to fix it?
Unable to locate DeviceSupport directory.
[ !! ] This probably means
you don't have Xcode installed, you will need to launch the app
manually and logging output will not be shown!

What version of iOS are you using on the device? Did it upgrade to 6.1 recently?
The problem is probably that Xcode hasn't yet downloaded what it needs to communicate with the device. If you open Xcode and look at the Organiser, you should see the status light turn green next to the device in the left sidebar.

Related

moving from GoogleMobileAds.framework to xcframework error

I changed my framework references from MobileAds.framework to xcframework following the instructions(manual) at https://developers.google.com/admob/ios/quick-start.
But for some reason I get the error as shown below. I cleared the cache. Even tried adding a new simulator. It still says the same. Can someone please help?
I am on Mac OS Catalina and Xcode 12.4. Cannot upgrade my OS or Xcode anymore.I am also unable to run the app on any of my devices. This app has been running fine, it was time to do minor UI color changes so nothing else has changed in the code.
Failed to load Info.plist from bundle at path /Users/User1/Library/Developer/CoreSimulator/Devices/8AF69E5B-FD16-4C80-B9F5-DE4A4A0B78BA/data/Library/Caches/com.apple.mobile.installd.staging/temp.8rg85u/extracted/Myapp.app/Frameworks/GoogleMobileAds.framework; Extra info about Info.plist: Couldn't stat /Users/User1/Library/Developer/CoreSimulator/Devices/8AF69E5B-FD16-4C80-B9F5-DE4A4A0B78BA/data/Library/Caches/com.apple.mobile.installd.staging/temp.8rg85u/extracted/Myapp.app/Frameworks/GoogleMobileAds.framework/Info.plist: No such file or directory
Finally found the solution. Target->Frameworks->All Google admob related frameworks had "Embed and sign" selected, made them "Do not embed" and the app is running.

Xcode 13.2.1 Preview Not Working but Simulator Works

My Xcode Version 13.2.1 (13C100) got an unknown issue. I did several things like delete Xcode, new install Xcode, restore from backup nothing make any change! Currently, the project can be built and run in the simulator, but not in the preview window! it gives a message:
Cannot preview in this file - Timed out waiting for connection to DTServiceHub after 15.0 seconds.
What is the issue here any idea?
iMac becomes very slow when I taped the resume button.
Please Help!
I had a similar problem and was solved when I turned of Automatically refresh canvas
Suddenly It fixed, maybe the last update from apple through a software update called "Command Line Tools for Xcode". Before I have also tried a fresh OSX installation but the issue has not gone at all.
Check Software Update from system preference.
Thanks to the great community.
Try the following:
Clicking on the "Diagnostics" button on the failed preview pane.
Copy the ".pcm" file path. It looks like something similar to "/var/folders/aa/xxxxxxxxxxxxxxxxxxxxxxx/C/clang/ModuleCache/12345ABCDE/MyTest-XXXXXXXXXXXXXX.pcm"
Run the following command to remove the .pcm file in the Terminal app (replace the path using the specific path you copied from the Diagnostics log obtained in the step above:
rm -rf /var/folders/aa/xxxxxxxxxxxxxxxxxxxxxxx/C/clang/ModuleCache/12345ABCDE/MyTest-XXXXXXXXXXXXXX.pcm
References:
https://support.macincloud.com/support/solutions/articles/8000098646
https://developer.apple.com/forums/thread/696908
For me, it worked when I changed the device to Any iOS Device(Arm 64) for the preview
on a Mac with apple silicon chip
CTRL + Click on Xcode app
Get info
Check "open using Rosetta"
I had the same problem:
No preview with diagnostic : "Cannot preview in this file - Timed out waiting for connection to DTServiceHub after 15.0 seconds".
Tried the solutions found on the internet, without success.
I switched to macOS beta 12.3 and Xcode 13.2.
And now there is the preview...
The below solution has worked for me:
Running a preview for a project having scenedelegate or appdelegate which worked and then i tried running preview for app protocol style project which was not working earlier.

Flutter app icon does not change in ios simulator for flutter_launcher_icons

I'ved used
flutter_launcher_icons: ^0.7.4 - https://alligator.io/flutter/app-icons/
and ran the command in my mac.
After relaunching the app, I noticed the app icon is not changed.
But if opened in xcode and deploy to device/appstore, the app icon is updated.
Why is IOS simulator not showing the updated app icon ?
Try to check the icon mapping using XCode. It could be something wrong in the file Contents.json. To investigate more :
Open your workspace on the ios/Runner.xcworkspace or the project ios/Runner.xcodeproj.
In the XCode open Runner/Assets.xcassets and you will find something this.
Check the warning (if it appeared). To fix the mapping issue check also file in ios/Runner/Assets.xcassets/Contents.json from your flutter project base folder and see if the mapping correct.
Don't forget to reset the cache of the simulator so the new icon also appears in the task menu.

IOS 7 simulator doesn't work at all

I've got annoying problem with IOS Simulator at Xcode 5. It doesn't work at all.
I've been searching for a week around different forums and there are a lot of variants of solving this problem. But nothing could help me. I reseted the simulators content and settings, deleted some files connected to simulator, reinstalled Xcode, but everything is hopeless.
My Simulator shows black screen and debuger says:
iPhone Simulator[573] : Could not lookup service com.apple.iphonesimulator.host_support: 3
iPhone Simulator[573] : Unable to update keyboard layout because we were unable to connect to the host_support mach service.
iPhone Simulator[573] : Could not lookup service com.apple.iphonesimulator.bridge: 3
iPhone Simulator[573] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
There is absolutely the same problem here, but there is no proper answer:
xcode5 iOS Simulator failed to install the application
Thanks in advance.
Here is what I would do, it may not help.
Run TimeMachine, you really need an up-to-date backup. Make sure
it ran successfully.
Make sure you are running 10.9.2.
Delete Xcode by dragging it from the Applications folder to the trash
Delete ~/Library/Application Support/iPhone Simulator Empty the
trash.
Delete ~/Library/Developer/Xcode (this has some user profile things
in it, the TM backup will have a copy if needed later)
Make sure there is no other Xcode or Simulator on the computer,
Spotlight is a good place to start. Delete anything found and empty
the trash.
Empty the trash.
Reboot
Install Xcode 5.0.2 from the AppStore.

Xcode will run app on simulator but not on device

I receive the following error when trying to run the app on my device.
error: failed to launch '/Users/michael/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/Word Processor.app/Word Processor' -- No such file or directory (/Users/michael/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/Word Processor.app/Word Processor)
The app runs fine in the simulator. When I try to debug on the device, it appears to copy the app (I can see the icon), but then stalls with the above message. Xcode says it is running the app on my iPod, but nothing is happening on my iPod.
When I click on the app, the app appears to launch, but seems to be missing resources.
Other projects of mine work properly. What setting do I need to change to make this work properly.? Looking at the error message, it seems to be looking in my mac for the app. But this doesn't make sense since I am trying to run it on my 4th gen iPod touch. I am using Xcode 4.3.1 and iOS 5.1
With Mountain Lion and the latest version of Xcode (4.4.4F250), none of the suggestions in this thread worked directly (clean, clean project, remove derived data folder, etc). This sequence did. From DhilipSiva:
Disconnect your device
Delete the app from your device
Quit Xcode (Don't just simply close the window, quit it)
Delete derived data folder rm -fr ~/Library/Developer/Xcode/DerivedData (console)
Start Xcode,connect device & run the project
I solve this by going to Targets-> Info -> Required Device capabilities and delete the option with armv7.
Hope this helps!
This is a recurring problem that many developers are having with the current version of Xcode. The temporary workaround has been consistently deleting the DerivedData folder.
You can add doing it to a build script or even make it a cron job:
rm -rf ~/Library/Developer/Xcode/DerivedData
Sad, but true.
For me restarting of Xcode, cleaning DerivedData and restaring device wasn't enough in most cases, until I had figured out that iTunes was also running, and after quitting iTunes everything worked fine!
So my steps now are simple:
1. Quit Xcode.
2. If iTunes is running, quit iTunes.
3. Reopen project.
No need to remove app from the device, clean project or restart/disconnect device.
I think that's because Xcode and iTunes use some common libraries (as you know, Xcode Installer always asks to quit iTunes on installing iOS SDK).
I also had this problem after changing from a lower XCode and iOS version to the current XCode and iOS version.
I fixed this problem by changing th iOS Depolyment Target to a lower version, since my Device is not updated to the latest iOS yet.
You can do this by clicking the project inside the Info tab.
Have you looked at the Developer Certs and Distribution Certs if you have. When running in debug mode from Xcode your will need your app assigned with the developer cert and not the distribution cert. The distribution certs do not allow for debugging.
This error will manifest whenever the device capabilities described in the Info.plist do not match those of the device.
In my case, I was requesting GPS support and location-services support and trying to test on an iPod touch.
I struggled with this problem for 2 days and went through all the posts, tried all the options including, restarting Xcode, device, deleting DerivedData folder etc.
Finally, the problem was with the Info.plist file. In my case, I had improper icon paths in the Info.plist file. I suggest you to archive the application and then validate it to get the exact problem in you case. Only when I did that, I was able to find the issue.
I solved this problem many times with DhilipSiva's solution. However, it may not work sometimes. If that is the case, consider deleting and re-adding the target.
Removed armv6 support and it started working again
I stumbled upon this same problem on several diferent projects, researched a lot on forums and even here on Stack overflow. A lot of solutions were given, and some people seemed to get them working, but none of them worked for me.
So we tried some pretty obvious course of action, which for some reason we didn't tought about before: I've done a CHMOD -R 777 on the EXACT path indicated by the error message (I copied it directly).
Worked like a charm, 100% times!
Hope it helps, guys!
As Chronos mentiod, the device capabilities might be the reason. In addition I would say that in my case it was all about the UIRequiresPersistentWiFi key, which (for some unclear reason) didn't let me to install my app on an iPhone4. Hope this helps ones who tried everything else and haven't fixed the problem yet.
I solve this by going to Targets-> Info -> Required Device capabilities and check id at 0 index if armv7 not in 0 index then remove other things and armv7 set on 0 index and clean app connect device and run.
Hope this helps fine!
I did these steps:
Delete derived data: rm -rf ~/Library/Developer/Xcode/DerivedData
Deep cleaned the project: Shift Key + Option Key + Command Key + letter K key
Quit the project
Quit XCode
Deleted the app from my device
When I reopened the Xcode, launched the project, and then launched the app it successively ran on my device
For me it was Command Line Tools
Go to Xcode -> Preferences -> Locations -> Command Line Tools
Make sure you select latest Xcode version. I selected Xcode 11.0, and everything started working.
I get the similar question and has searched via the internet the whole day without solution yet...
Xcode 12, iOS 14.
I'm using a cocoaPods call GCDWebServer, which will open a build-in http service in iOS. Now it works fine in simulator and I could open a home page of it in my Mac's browser. But I cannot open the home page if running it with real iPhone. The browser said "Cannot connect to server"
And in console, everything is same without any errors provided for me.
Thus, how could I debug this?
[DEBUG] Did open IPv4 listening socket 3
[DEBUG] Did open IPv6 listening socket 4
[INFO] GCDWebUploader started on port 80 and reachable at http://192.168.1.3/

Resources