Post

Replies

Boosts

Views

Activity

Transformable properties errors
I'm getting the following error messages:CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/0E3DF5FB-DA57-4A63-98FE-59E2961C6F50/Routes.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileProto.omo'2020-01-11 17:19:50.885657-0600 Routes[1913:394464] [error] fault: One or more models in this application are using transformable properties with transformer names that are either unset, or set to NSKeyedUnarchiveFromDataTransformerName. Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead. At some point, Core Data will default to using "NSSecureUnarchiveFromData" when nil is specified, and transformable properties containing classes that do not support NSSecureCoding will become unreadable.. . .CoreData: warning: Property 'value' on Entity 'GMSCacheProperty' is using nil or an insecure NSValueTransformer. Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead.. . .2020-01-11 17:20:08.491131-0600 Routes[1913:394093] Can't end BackgroundTask: no background task exists with identifier 13 (0xd), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.I don't know what the problem is because I am not using any CoreData Attributes of type Transformable nor is there any code in my project about anything transformable. I have searched with Google for this error, but have not found a solution that works.
4
0
2.7k
Jan ’20
How to reorder an array of objects?
If I have an array of objects that I have to reorder according to an array of integers that represent the original position, how would I reorder the array of objects according to the order given by the array of integers? The reordered objects array would logically be a new array.For example, an array of objects holds [A, B, C, D] and it needs to be rearranged according to an array of integers [2, 1, 0, 3], where the integer 2, for example, refers to object C, which in the objects array is in position 2. In the new order of the objects array, C would be in the first position, because the integer 2 is in the first position in the integers array.
8
0
2.9k
Jan ’20
Why does table view row not select.
I have a table view that won't let me select a row. When I select a row, it would show selected and then right away show not selected. I have set the datasource and delegate properties correctly. Everything is user interaction enabled. I have a tap gesture recognizer object in the table view cell. I set a breakpoint in the table view did select row callback method, but the method never runs.
2
0
1.2k
Dec ’19
Xcode runtime error for iOS iPhone 8 - [AXRuntimeCommon] AX Lookup problem - errorCode:1100 portName:'com.apple.iphone.axserver' PID:2751
I am getting a runtime error from Xcode in the debug window when I run my app on an actual iPhone 8 device:[AXRuntimeCommon] AX Lookup problem - errorCode:1100 portName:'com.apple.iphone.axserver' PID:2751I have no idea what code that is coming from. I am using the Notification Content Extension.What is causing this error message?
3
0
11k
Jul ’19
Error in storyboard
I am getting an error on my Storyboard where a bar button item is enlarged and placed in the root view of a view controller. Strange.I think I need to reinstall Xcode. How would I do that? I have three versions on my Mac mini.It looks like I need to download the latest version instead of install it through the App Store. Where is that again?
4
0
1.1k
Jun ’19
How do I test In-App Purchase using Simulator?
I am no longer able to test In-App Purchases with Simulator for iOS 12. When I leave the iTunes account setting off, my sandbox account won't connect to iTunes with the error object reporting error message "Cannot connect to iTunes Store". When I try to put my sandbox account in the iTunes account setting, I get a message that says, "There was a problem connecting to the server."
2
0
34k
Feb ’19
Environment variables
In Info.plist of my Xcode project, I see for instance "Executable file" is set to "$(EXECUTABLE_NAME)". I believe that "$(EXECUTABLE_NAME)" is called an environment variable. What I'd like to know is where is that environment variable set. I'd like to see where all the environment variables are set so I can use those values.
6
0
11k
Jan ’19
How do I cause a timer to fire while the app is in the background?
When I write code for a timer like below, the timer doesn't fire if the device is locked. How do I cause the code in the timer closure to run when the app is in the background? Are there any other ways to cause specific code to run at a certain time when the app is in the background? func setTimer(alarm: UTIAlarm) { let timer = Timer(fire: alarm.date!, interval: 0, repeats: false) { (timer: Timer) in print("timer fire \(self.dateFormatter.string(from: alarm.date!))") do { try AVAudioSession.sharedInstance().setActive(true, options: .notifyOthersOnDeactivation) } catch { print("Failed to setActive AVAudioSession from timer closure.") print(error.localizedDescription) } let predicate = MPMediaPropertyPredicate(value: alarm.mediaItem!.title, forProperty: MPMediaItemPropertyTitle) let query = MPMediaQuery() query.addFilterPredicate(predicate) self.playerController!.setQueue(with: query) self.playerController!.play() } runLoop.add(timer, forMode: .default) timers.append(timer) }
7
0
3.3k
Nov ’18
I am getting validation error message creating sandbox tester account.
I am having trouble creating a sandbox tester account in App Store. I keep getting an error message saying there are one or more validation errors when I click on "Invite", but there are no indications of any errors. None of the fields are marked with red for an error.What is going on? Is there a limit of the number of sandbox tester accounts I can create? Is anyone else having trouble with this?
66
1
44k
Oct ’18