Post

Replies

Boosts

Views

Activity

Using camera with Mac Catalyst
In an app ported to Mac Catalyst, the camera interface always turned out to be blank.I have checked: the capabilities includes "Camera", the privacy setting in info.plist is there (the iPad app shows the camera fine), and I even try to include front camera for UIImagePickerController. if UIImagePickerController.isSourceTypeAvailable(.camera) { let imagePicker = UIImagePickerController() imagePicker.sourceType = .camera imagePicker.delegate = self imagePicker.cameraDevice = .front // added for Mac self.present(imagePicker, animated:true, completion:nil) }The error I got is: "[Generic] Could not create video device input: Error Domain=AVFoundationErrorDomain Code=-11814"
5
0
2.9k
Jun ’22
Mac Catalyst release notes?
In the process of converting our SwiftUI app to Mac Catalyst, we found that although the app works fine in macOS 13, it is very buggy in macOS 12 (menu does not get refreshed when enable/disable, color palette does not work properly, localized text does not show up in menu, etc). Is there release notes for Mac Catalyst running on different macOS releases? And how do we disable features that don't work on older OS? Thanks!
0
0
923
Jan ’23
Widget in iOS app not shown as Mac Catalyst app
I wish to support Mac with my iPhone/iPad app using Mac Catalyst. Our app shows widgets on iPhone/iPad home screen properly. Using Mac Catalyst is straight forward (except to exclude all ActivityKit codes). However, although the app shows up and work perfectly, I can't see the widgets in notification center. Separate compile the widget extensions show no errors but nothing is shown. Also tried build separately, drag into Applications folder, run the build and the widgets are not shown. Any suggestions? Using the Xcode 14.2 and macOS 13.1.
2
0
1.8k
Feb ’23
Localization in Mac Catalyst does not work in macOS 12 menu
Localization works fine in macOS 13, but not in macOS 12 menu (still show English while in localized language). Is it possible to make it work in macOS 12?             CommandGroup(after: .appInfo) {     Button("About Company") { showAppsSheet = true }      } Tried setting the name in LocalizedStringKey then put in Button but does not work.
1
0
1.1k
Feb ’23
Menu works fine in iPad and Mac Catalyst but crashed on Apple Silicon
Hi, I have an iPad app that has menus, like:  CommandGroup(replacing: .help) {                 Button("Help") { showHelp = true }                     .keyboardShortcut("/")  } They works fine in iPad and also if compiled to Mac Catalyst, but will crash on Apple Silicon Mac when selected the menu items with errors like: [General] -[_UIEditMenuInteractionMenuController propertyList]: unrecognized selector sent to instance 0x600000190540 I did not use storyboard and only use SwiftUI. Any suggestions? Note: of course the best solution is to compile to Mac Catalyst, but the app has some other issues when run in Mac Catalyst. So I can only release it as iPad app.
5
0
1.9k
Oct ’23
ARKit for spatial computing?
Is ARKit for spatial computing for Vision Pro only? Or it works on exisiting ARKit hardware like iPhone and iPad? I found that all my existing ARKit apps do not work on Vision Pro simulator, thus I am interested to know whether I am rewriting my apps for Vision Pro only, or upgrade for existing platforms too?
1
0
712
Jul ’23
Cannot distribute app?
I have a watch app that I have been distributed for years. But on recent Xcode 15.0.1, I started having problem: Using a eligible provision profile, I started distribute app via TestFlight and App Store, and i got: Automatic signing cannot register bundle identifier "com.virtualgs.invaders.watchkitapp.watchkitextension". Automatic signing cannot register bundle identifiers with Apple. Register your bundle identifier on https://developer.apple.com/account and then try again. No profiles for 'com.virtualgs.invaders.watchkitapp.watchkitextension' were found Xcode couldn't find any iOS App Store provisioning profiles matching 'com.virtualgs.invaders.watchkitapp.watchkitextension'. But it has gone up for many years! Any ideas?
1
0
1.1k
Oct ’23
The answer of "apple" goes to guardrailViolation?
I have been using "apple" to test foundation models. I thought this is local, but today the answer changed - half way through explanation, suddenly guardrailViolation error was activated! And yesterday, all reference to "Apple II", "Apple III" now refers me to consult apple.com! Does foundation models connect to Internet for answer? Using beta 3.
3
0
186
Jul ’25
iPadOS textFormatting menu does not appeared
I have this in my swift file: CommandGroup(replacing: .textFormatting) { Toggle("Bold Text", systemImage: "bold", isOn: boldBinding) .keyboardShortcut("B") Button("Align Left", systemImage: "text.alignleft") { alignmentBinding.wrappedValue = 1 } .keyboardShortcut("[") Button("Align Center", systemImage: "text.aligncenter") { alignmentBinding.wrappedValue = 0 } .keyboardShortcut("\\") Button("Align Right", systemImage: "text.alignright") { alignmentBinding.wrappedValue = 2 } .keyboardShortcut("]") } Nothing appeared in iPadOS menu (but does appeared on Mac). Change textFormatting to textEditing does work, but appeared in a very long menu
Topic: UI Frameworks SubTopic: SwiftUI
0
0
110
Jul ’25
Using camera with Mac Catalyst
In an app ported to Mac Catalyst, the camera interface always turned out to be blank.I have checked: the capabilities includes "Camera", the privacy setting in info.plist is there (the iPad app shows the camera fine), and I even try to include front camera for UIImagePickerController. if UIImagePickerController.isSourceTypeAvailable(.camera) { let imagePicker = UIImagePickerController() imagePicker.sourceType = .camera imagePicker.delegate = self imagePicker.cameraDevice = .front // added for Mac self.present(imagePicker, animated:true, completion:nil) }The error I got is: "[Generic] Could not create video device input: Error Domain=AVFoundationErrorDomain Code=-11814"
Replies
5
Boosts
0
Views
2.9k
Activity
Jun ’22
Mac Catalyst release notes?
In the process of converting our SwiftUI app to Mac Catalyst, we found that although the app works fine in macOS 13, it is very buggy in macOS 12 (menu does not get refreshed when enable/disable, color palette does not work properly, localized text does not show up in menu, etc). Is there release notes for Mac Catalyst running on different macOS releases? And how do we disable features that don't work on older OS? Thanks!
Replies
0
Boosts
0
Views
923
Activity
Jan ’23
Show toggle button and divider in Mac Catalyst menu bar (SwiftUI)?
Hi, When I put Toggle button and divider() in CommandGroup(replacing: .textFormatting) { Toggle("Toggle Toolbar", isOn: $toolbar).keyboardShortcut("T") Divider() } On macOS 12/13, the Toggle Button is simply display as a button (with no checkbox or other indicators), and Divider is not shown. Is this a bug or I need to add in some modifiers?
Replies
1
Boosts
0
Views
1.3k
Activity
Mar ’23
Widget in iOS app not shown as Mac Catalyst app
I wish to support Mac with my iPhone/iPad app using Mac Catalyst. Our app shows widgets on iPhone/iPad home screen properly. Using Mac Catalyst is straight forward (except to exclude all ActivityKit codes). However, although the app shows up and work perfectly, I can't see the widgets in notification center. Separate compile the widget extensions show no errors but nothing is shown. Also tried build separately, drag into Applications folder, run the build and the widgets are not shown. Any suggestions? Using the Xcode 14.2 and macOS 13.1.
Replies
2
Boosts
0
Views
1.8k
Activity
Feb ’23
Localization in Mac Catalyst does not work in macOS 12 menu
Localization works fine in macOS 13, but not in macOS 12 menu (still show English while in localized language). Is it possible to make it work in macOS 12?             CommandGroup(after: .appInfo) {     Button("About Company") { showAppsSheet = true }      } Tried setting the name in LocalizedStringKey then put in Button but does not work.
Replies
1
Boosts
0
Views
1.1k
Activity
Feb ’23
Menu works fine in iPad and Mac Catalyst but crashed on Apple Silicon
Hi, I have an iPad app that has menus, like:  CommandGroup(replacing: .help) {                 Button("Help") { showHelp = true }                     .keyboardShortcut("/")  } They works fine in iPad and also if compiled to Mac Catalyst, but will crash on Apple Silicon Mac when selected the menu items with errors like: [General] -[_UIEditMenuInteractionMenuController propertyList]: unrecognized selector sent to instance 0x600000190540 I did not use storyboard and only use SwiftUI. Any suggestions? Note: of course the best solution is to compile to Mac Catalyst, but the app has some other issues when run in Mac Catalyst. So I can only release it as iPad app.
Replies
5
Boosts
0
Views
1.9k
Activity
Oct ’23
SwiftUI TextEdit only supports left alignment
If you set the alignment to center or right alignment, the text will fly to the left when editing. This works for iPhone/iPad but not Mac Catalyst. Is this a know bug? If yes is there a workaround?
Replies
1
Boosts
0
Views
1k
Activity
Mar ’23
Request review that works for Mac Monterey? (Mac Catalyst)
Is there a way to request review for Mac Monterey and Ventura? Hopefully compatible with iOS too?
Replies
0
Boosts
0
Views
711
Activity
Feb ’23
ARKit for spatial computing?
Is ARKit for spatial computing for Vision Pro only? Or it works on exisiting ARKit hardware like iPhone and iPad? I found that all my existing ARKit apps do not work on Vision Pro simulator, thus I am interested to know whether I am rewriting my apps for Vision Pro only, or upgrade for existing platforms too?
Replies
1
Boosts
0
Views
712
Activity
Jul ’23
Cannot distribute app?
I have a watch app that I have been distributed for years. But on recent Xcode 15.0.1, I started having problem: Using a eligible provision profile, I started distribute app via TestFlight and App Store, and i got: Automatic signing cannot register bundle identifier "com.virtualgs.invaders.watchkitapp.watchkitextension". Automatic signing cannot register bundle identifiers with Apple. Register your bundle identifier on https://developer.apple.com/account and then try again. No profiles for 'com.virtualgs.invaders.watchkitapp.watchkitextension' were found Xcode couldn't find any iOS App Store provisioning profiles matching 'com.virtualgs.invaders.watchkitapp.watchkitextension'. But it has gone up for many years! Any ideas?
Replies
1
Boosts
0
Views
1.1k
Activity
Oct ’23
IPC error
While runninf Apple Foundation Model in iPhone simulator, I got this error: IPC error: Underlying connection interrupted What does this mean? Related to foundation model?
Replies
2
Boosts
0
Views
231
Activity
Jul ’25
The answer of "apple" goes to guardrailViolation?
I have been using "apple" to test foundation models. I thought this is local, but today the answer changed - half way through explanation, suddenly guardrailViolation error was activated! And yesterday, all reference to "Apple II", "Apple III" now refers me to consult apple.com! Does foundation models connect to Internet for answer? Using beta 3.
Replies
3
Boosts
0
Views
186
Activity
Jul ’25
textSelection does not work
Text(...).textSelection(.enabled) does not work on iPhone and iPad, but works on Mac.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
1
Boosts
0
Views
146
Activity
Jul ’25
ShareLink in iPad menu bar does not show up
This is my code: CommandGroup(before: .printItem) { ShareLink(item: answer) .disabled(answer.isEmpty) } It works fine on Mac, when selecting the share menu from Mac, it works. But when select from iPad menu bar, nothing shows up.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
0
Boosts
0
Views
87
Activity
Jul ’25
iPadOS textFormatting menu does not appeared
I have this in my swift file: CommandGroup(replacing: .textFormatting) { Toggle("Bold Text", systemImage: "bold", isOn: boldBinding) .keyboardShortcut("B") Button("Align Left", systemImage: "text.alignleft") { alignmentBinding.wrappedValue = 1 } .keyboardShortcut("[") Button("Align Center", systemImage: "text.aligncenter") { alignmentBinding.wrappedValue = 0 } .keyboardShortcut("\\") Button("Align Right", systemImage: "text.alignright") { alignmentBinding.wrappedValue = 2 } .keyboardShortcut("]") } Nothing appeared in iPadOS menu (but does appeared on Mac). Change textFormatting to textEditing does work, but appeared in a very long menu
Topic: UI Frameworks SubTopic: SwiftUI
Replies
0
Boosts
0
Views
110
Activity
Jul ’25