Post

Replies

Boosts

Views

Activity

How to refresh local Swift Package after adding files in Xcode 16?
Since upgrading to Xcode 16, I've noticed that when I add new files to my local Swift packages, the "Update Package" option is no longer available when I right-click on my local package. In previous versions of Xcode, I used this feature to make Xcode recognize newly added files without any issues. Now, with Xcode 16, the only way I've found to get Xcode to recognize new files is to remove and re-add the entire package, which is obviously not ideal. I've tried cleaning the build folder and rebuilding the project, but it doesn't seem to help. Is there a new workflow or method in Xcode 16 to refresh or update local Swift packages without needing to remove and re-add them every time? Any suggestions or workarounds would be greatly appreciated! What I’ve tried so far: Cleaning and rebuilding the project Looking for any options under "File > Packages" menu Environment: Xcode 16 Local Swift Package Thanks in advance!
3
2
335
Sep ’24
swift ios macCatalyst app does not load some views on startup on macOS Monterey
Hi everyone,  since the release of the new macOS Moterey operating system (12) my MacCatalyst application does not load some views at startup until I resize the window or change focus. If I look at XCode's Debug View Hierarchy these views are not present. If, on the other hand, I use the classic debug (while they are not shown) it turns out that they have the correct frame (origin and size), superviews and window. To show them I have to resize the window (manually, using the mouse) or remove the focus from the app (for example by clicking on another window and then clicking the app window again). Only after doing one of these two things are the views loaded. Has anyone experienced the same behavior? The application is developed in Swift only with UIKit and various Storyboards (without SwiftUI). Thanks a lot to everyone.
2
0
570
Jan ’22
Swift iOS/Mac Catalyst EKEventViewController and EKEventEditViewController do nothing when tap show all notes or end time
I'm developing an app that manages events and I have an annoying problem that affects both EKEventViewController and EKEventEditViewController, some buttons wont work.On EKEventViewController - "Show All Notes" does nothing when you tap over it both on iPhone/iPad and on Mac Catalyst AppScreenshot: https://i.stack.imgur.com/pPnjN.pngOn EKEventEditViewController - "End time" can't be edited only on Mac Catalyst App (and the edit of start time is horrible).Screenshot: https://i.stack.imgur.com/4xask.pngCan someone help me?
0
0
378
May ’20
Can't create a Mac version of iPad App: Xcode couldn't find any Mac Catalyst App Development provisioning profiles matching 'maccatalyst.com…'
I'm trying to create a Mac Catalyst version of my iPad app. I checked the "Mac" checkbox (under Device in General section), I selected the "My Mac" scheme, I ran... and then, xcode show me code signing errors!When I checked the checkbox, the Signing & Capabilties tab added a new macOS platform entry, and a bundle identifier: maccatalyst.com.mycompany.myapp. That maccatalyst.com bundle ID isn't dispalyed in my Certifiicates, Identifiers & Profiles section of the Apple developer site. When I try to add it manually, by adding an App ID, choosing Mac and specifying the explicit bundle ID, I get the following error: An App ID with Identifier 'maccatalyst.com.mycompany.myname' is not available. Please enter a different string.As suggested here, I also tried to: 1. Go to Certificates, Identifiers & Profiles. 2. Select Profiles 2. Select iOS app that you are trying to catalyze from. 3. Enable "Mac". 4. Wait for hours.How I have to proceed?
2
0
2.1k
Dec ’19