ios-simulator

UIDocumentInteractionController not working in iPad Simulator (XCode 3.2.3)

限于喜欢 提交于 2019-11-29 11:32:35
The UIDocumentInteractionController appears to be non-functional in iPad Simulator ("iPhone Simulator" version 4.0, shipping with XCode 3.2.3, using iOS Version 3.2). I have a simple sample code presenting a PDF preview using UIDocumentInteractionController . It works on the device. On iPad presentPreview just returns NO, the UIDocumentInteractionController's delegate methods are not invoked. Any hint how to make it work? Confirming the same behaviour over here: calling - (BOOL)presentPreviewAnimated: returns NO on the simulator but works on the device. Thanks for pointing this out, I just

Not including non-retina display images in an iPhone project

本秂侑毒 提交于 2019-11-29 11:20:10
I have an iPhone Xcode project that currently only contains images for retina display (twice the size as normal and with a @2x.png suffix). When I run the app on the iPhone Simulator (non retina) the images are still being displayed. Does this mean I don't need to worry about including two sets of images: retina and non-retina? This all seems a bit odd. I would assume that no images would appear on a non retina device if there are no non-@2x files included. Note: I have not tested my app on a non retina device. Just the simulator. Even if it works, it's not good practice, and if you have a

UIImagePickerController throws ERROR: 185: Error creating aggregate audio device: 'what' when trying to select video

£可爱£侵袭症+ 提交于 2019-11-29 11:19:56
问题 when i try to use UIImagePickerController to select a video from camera roll in the iOS-Simulator of XCode 5, i get the aforementioned error. this is the output: 2013-11-02 21:28:44.788 Imagepicker[89146:1403] 21:28:44.788 ERROR: 185: Error creating aggregate audio device: 'what' 2013-11-02 21:28:44.788 Imagepicker[89146:1403] 21:28:44.788 WARNING: 219: The input device is 0x32; 'AppleHDAEngineInput:1B,0,1,1:2' 2013-11-02 21:28:44.789 Imagepicker[89146:1403] 21:28:44.789 WARNING: 223: The

Device vs. Simulator Linguistic Schemes

谁说胖子不能爱 提交于 2019-11-29 10:55:58
Does anyone understand why this is happening? On any simulator all of the schemes are found with the following code: NSArray<NSLinguisticTagScheme> *availSchemes = [NSLinguisticTagger availableTagSchemesForLanguage:@"en"]; for (NSLinguisticTagScheme scheme in availSchemes) { NSLog(@"Tag scheme %@", scheme); } yielding the following: 2018-02-13 09:12:54.066970-0500 MY_APP[79671:5737063] Tag scheme Language 2018-02-13 09:12:54.067160-0500 MY_APP[79671:5737063] Tag scheme Script 2018-02-13 09:12:54.067300-0500 MY_APP[79671:5737063] Tag scheme TokenType 2018-02-13 09:12:54.067425-0500 MY_APP[79671

iOS weird error: dyld: Symbol not found: __dealloc?

百般思念 提交于 2019-11-29 10:43:14
I suddenly getting the below error, which is not allowing any application to run in simulator. The app just crashes. dyld: Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Please suggest ! As mentioned in the Xcode 6.1 Release Notes , the issue is that you are linking against new frameworks

Why do I get instruments - “Target failed to run”?

牧云@^-^@ 提交于 2019-11-29 10:37:58
问题 Target failed to run: Remote exception encountered: Faild to get task for pid 3103 I'm running iPhone OS 3.1.3 on the device and I can run my App in debug mode on the device. I downloaded and installed the xcode_3.2.2_and_iphone_sdk_3.2_final.dmg twice, without any luck. 回答1: I got the same issue when I switched to XCode 4 and I solved it by setting my release code-signing profile to my development profile instead of the app store profile that was previously set. Indeed, Xcode 4 profiles your

How do I install the iOS 4.3 Simulator on Xcode 4.5?

 ̄綄美尐妖づ 提交于 2019-11-29 09:27:35
问题 I have Xcode 4.5 installed via the App Store, and it has iOS 5.1 and 6.0 support, but not iOS 4.3. Nor is it available for download in the "Downloads" tab of Preferences. I tried grabbing it from another computer and putting it on this one, as described by Dominik Porada, but alas that did not work. Maybe there are other files I need? How do I get the iOS 4.3 SDK back? 回答1: I actually did get 4.3 to appear in the Xcode 4.3 menu just by copying the iPhoneSimulator4.3.sdk file to the Xcode.app

MFMessageComposeViewController on Simulator - canSendText?

和自甴很熟 提交于 2019-11-29 09:16:45
following situation: I want to send in app SMS. This is my code creating the MFMessageComposeViewController: -(void) showMessageComposerWithText:(NSString*)messageText telNumber:(NSString*)telNumber composeDelegate:(id)delegate { MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init]; if([MFMessageComposeViewController canSendText]) { controller.body = messageText; controller.recipients = [NSArray arrayWithObject:telNumber]; controller.messageComposeDelegate = delegate; [delegate presentModalViewController:controller animated:YES]; } } So I think this is

containerURLForSecurityApplicationGroupIdentifier returns nil on iOS Simulator

大兔子大兔子 提交于 2019-11-29 09:08:14
Context With iOS8 and extensions Apple introduced the App group containers ( more info here ). Problem We use it through NSFileManager 's containerURLForSecurityApplicationGroupIdentifier: method. It works well in production on AppStore (with both iOS8 and iOS7). Problem is since our team updated to Xcode 6.1 (6A1052d) , the method returns nil on Simulators. We searched a lot but we didn't manage to find any clues. Even this question or this one are not applicable here. TLDR: Question Does NSFileManager 's containerURLForSecurityApplicationGroupIdentifier: method works on your simulators? Is

iPhone simulator and applicationWillTerminate()

妖精的绣舞 提交于 2019-11-29 07:46:14
问题 When my app is run in the iPhone simulator, the delegate method - (void)applicationWillTerminate:(UIApplication *)application is only called the first time I hit the iPhone simulator's home button. After the home button is pressed and the app is launched again, hitting the home button does not call the delegate method. What is going on here? Am I misunderstanding something fundamental? 回答1: I suspect that it is being called, but that you are getting confused because after you hit the Home