Post

Replies

Boosts

Views

Activity

Reply to Xcode 13.2 Instantiating CLLocationButton crashes in Simulator
Just a quick answer before I post a long one: I also stumbled upon this problem, and I managed to create a Minimal Reproductible Example. I'm going to create a GitHub repository with information and all, but basically the steps are: (Running XCode Version 13.2.1 (13C100)) Create a fresh SwiftUI app Edit the main App to match import SwiftUI import CoreLocationUI @main struct CLLocationButtonTesterApp: App { var body: some Scene { WindowGroup { LocationButton(action: {}) } } } Run the app → no problem Create an empty file Add French localization to the app Add French localization to the file (you can even remove any other *.lproj folder) Run the app → you get Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: width && height' terminating with uncaught exception of type NSException CoreSimulator 783.5 - Device: iPhone 13 (B8BF9672-9A4F-4E59-83EC-4844992B74C4) - Runtime: iOS 15.2 (19C51) - DeviceType: iPhone 13 Tip: Clean the build folder between each test, otherwise you might encounter caching issues 😉
Dec ’21
Reply to SwiftUI Preview don't work in Package with dependencies
I have the same problem, and it's quite annoying 😕 As a workaround, I use the package as a local dependency in a full app project. Here is the tip: I created a PreviewTester PreviewProvider, in which I reference a preview I want to see (requires to make it public, which I don't like at all, but I just don't commit it). struct PreviewTester: PreviewProvider { static var previews: some View { YourView_Previews.previews } } Then I start the preview, pin it, and edit the view in the package source file.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’21
Reply to MetricKit histogrammedApplicationResumeTime meaning
When the user leaves the app but does not close it, the app goes in the background, and when they reopen it, it goes into foreground again without restart. Isn’t this your applicationResumeTime? This would explain the hours-long times 😉
Replies
Boosts
Views
Activity
Jun ’22
Reply to Xcode 13.2 Instantiating CLLocationButton crashes in Simulator
Just a quick answer before I post a long one: I also stumbled upon this problem, and I managed to create a Minimal Reproductible Example. I'm going to create a GitHub repository with information and all, but basically the steps are: (Running XCode Version 13.2.1 (13C100)) Create a fresh SwiftUI app Edit the main App to match import SwiftUI import CoreLocationUI @main struct CLLocationButtonTesterApp: App { var body: some Scene { WindowGroup { LocationButton(action: {}) } } } Run the app → no problem Create an empty file Add French localization to the app Add French localization to the file (you can even remove any other *.lproj folder) Run the app → you get Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: width && height' terminating with uncaught exception of type NSException CoreSimulator 783.5 - Device: iPhone 13 (B8BF9672-9A4F-4E59-83EC-4844992B74C4) - Runtime: iOS 15.2 (19C51) - DeviceType: iPhone 13 Tip: Clean the build folder between each test, otherwise you might encounter caching issues 😉
Replies
Boosts
Views
Activity
Dec ’21
Reply to Compiler error in Xcode 13.0 beta 3 using Combine framework.
Same problem here, when exporting localizations of an iOS app. The problem occurs when the compiler builds the CodableCSV package (I had to activate "Use Compiler to Extract Swift Strings", otherwise it works but my localised strings are not found).
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’21
Reply to SwiftUI Preview don't work in Package with dependencies
I have the same problem, and it's quite annoying 😕 As a workaround, I use the package as a local dependency in a full app project. Here is the tip: I created a PreviewTester PreviewProvider, in which I reference a preview I want to see (requires to make it public, which I don't like at all, but I just don't commit it). struct PreviewTester: PreviewProvider { static var previews: some View { YourView_Previews.previews } } Then I start the preview, pin it, and edit the view in the package source file.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21