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.
Post
Replies
Boosts
Views
Activity
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.
Is there a way of creating a subclass from CKRecord using CloudKit the same way that we can make a subclass of NSManagedObject using Core Data?
How do I access the Display Name of my target from code? I believe in the info.plist file, it is accessed as $(PRODUCT_NAME).
How would I check for a return key tap on the keyboard when a text view is first responder? So far I think I have to check the text parameter in the shouldChangeTextIn callback method of UITextViewDelegate. How would I check whether text is a return?
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.
I had installed my app using TestFlight in the past, but it doesn't show up in TestFlight. I have installed the app directly connected to Xcode also. Could that have messed it up?
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?
How do I copy to file system or play with AVAudioPlayer an MPMediaItem that I get from an MPMediaPickerController initialized with type audio? When I try, I get an error that says:The file “item.mp3” couldn’t be opened because URL type ipod-library isn’t supported.
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?
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."
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.
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)
}
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?
Anyone ever tested Apple's sample code for SiriKit UnicornChat? How do I figure out what to say to Siri to see if the sample works?