SOLVED: XCode or Finder does not recognize my iPhone
I had the exact same problem. After wasting 2 on this, I have finally found the solution. Hopefully this helps someone.
Here are the things I have tried.
Tried stop the USB related program from activity indicator and reconnecting the iPhone. See this thead. Didn't work for me anyway
I have tried restarting iPhone and Mac, Cleared Derived Data, Cache and all the things which developer will do to fix this. Didn't work
Started Follow these two instruction which contain basis troubleshooting apple mentioned. Here's instruction1 and instruction2. Both didn't work.
Updated iPhone to latest verison (17.3.1). didn't work.
Update Mac to lastest OS 14.3.1. didn't work.
Make sure it's not issue with Cable. My cable and iPhone was working perfectly with other macbook pro. By doing this I was able to come to conclusion that issue is with macBook not my iPhone..
Finally I have connected with Apple support(or they call themselves advisors) in a hope to get a solution to this. I was on chat/call with them for 6 hours. They keep transferring to other team and support staff keep asking the same troubleshooting steps which i have already mentioned on the above points. Complete waste of time. None of their solutions worked. I have mentioned their suggestions below if it helpful for anyone.
Apple Support Team suggested to Logout of current User and create some test user and connect with iPhone which didn't work. Here an link of article on how to do that.
Apple Support Team suggested me reinstall mac OS(data will still be in mac only OS will be reinstalled which took 2 hour). Didn't Work. Here article link on how to do that.
Apple Support Team suggested me to Start Mac in safe mode. Which also didn't work. Article here to follow
I'm hope that for at least some of the devs who follows this, get this issue fixed on their mac before reach the last step.
Finally I gave up with apple support and decided to do Factory reset the entire MacBook after backing up important files to into drive. After formatting the entire mac now it's like buying new mac without any of data or application data. After that I have tried connecting with my iPhone and it finally WORKED. I have wasted 2 days on this issue. Hope this help someone going through the same.
Post
Replies
Boosts
Views
Activity
Below code explains how to use multiple app intent shortcuts. You MUST use include (.applicationName) in phrases for each shortcuts to be visible in shortcut app and in spotlight section.
@available(iOS 16, *)
struct MyAppIntentShortcutsProvider: AppShortcutsProvider {
@AppShortcutsBuilder static var appShortcuts: [AppShortcut] {
AppShortcut(
intent: ShortcutIntentOne(),
phrases: [
"Create \(.applicationName) intent",
],
shortTitle: "first one",
systemImageName: "person.fill.badge.plus"
)
AppShortcut(
intent: ShortcutIntentTwo(),
phrases: [
"Create \(.applicationName) intent two",
],
shortTitle: "second one",
systemImageName: "list.clipboard.fill"
)
}
}