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 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