Post

Replies

Boosts

Views

Activity

Test iOS On-Demand Resources on M1 mac(Designed for iPad) fail
I create a new project just for testing on-demand resources and it works properly on real devices and iOS simulators but no luck on Mac(Designed for iPad). The project is very simple like bellow: NSBundleResourceRequest* request = [[NSBundleResourceRequest alloc] initWithTags:[NSSet setWithArray:@[@"A"]]]; [request beginAccessingResourcesWithCompletionHandler:^(NSError* error){ if (error != nil) { NSLog(@"%@", error.description); } }]; The error I encounter on my M1 Mac is consistently: Error Domain=NSCocoaErrorDomain Code=-1 "(null)". However, I'm unsure about what steps to take to resolve this issue. Just wondering can we test on-demand resources on apple silicon macs directly by 'Designed for iPad', or we can only test on real devices and simulators? I have read many documentations and websites but it seems like no one addresses about this.
0
0
434
Dec ’23