ios-simulator

Core Location in iPhone Simulator 3.2 (iPad)

我们两清 提交于 2019-11-29 07:20:54
So, i'm trying to port my app to iPad. I'm using CoreLocation. Apple says the iPad does have Location: Wi-Fi Digital compass Assisted GPS (Wi-Fi + 3G model) Cellular (Wi-Fi + 3G model) so it should be possible to get the position of my ipad (at least with 3g model) about 3km radius would be enought. but it doesnt work in simulator (3.2 ipad) (running 3.1.3 in simulator simulates me cupertino). is there a way to get the position in simulator (3.2 ipad) ? i live in germany and here the ipad isnt released yet, so i cannot test it on my device. thanks! edit thats how i'm trying to get my

Missing localization in Xcode 6.1

柔情痞子 提交于 2019-11-29 07:11:07
Since update to Xcode 6.1 yesterday there is no correct localization of apps in the iOS Simulator. I switched the language and region to German/Germany and my apps are still in English and only English keyboard is available. Localization was fine in Xcode 6.0.1 and iOS 8.0 Simulator. Does anybody have similar problems? One possible work around is to set the "Application Language" in the used scheme. Source: Answer of Yoshihiro Sakamoto in Apple Dev Forum This was mentioned in the Xcode 6.1 Release Notes In some situations, [NSLocale currentLocale] may return en_US instead of the chosen locale

How to hide folders created in Document Directory in ios?

不想你离开。 提交于 2019-11-29 07:03:19
I have created some PDF files programatically, which i am storing into the devices memory using the following code >>>> NSString *fileName = [NSString stringWithFormat:@"SampleTextFile.pdf",strFinalString]; NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *saveDirectory = [path objectAtIndex:0]; NSString *saveFileName = fileName; NSString *documentPath = [saveDirectory stringByAppendingPathComponent:saveFileName]; I can see the file in the Devices Document folder. I want to hide these files so that the user can not see or delete it. Can

objc_setAssociatedObject unavailable in iPhone simulator

若如初见. 提交于 2019-11-29 06:48:21
In the 3.1 SDk, Apple added support for associated objects. However, the simulator will not compile code that includes references to objc_setAssociatedObject, objc_getAssociatedObject, et al. (Undeclared errors) Is there away around this? Can I make the iPhone simulator compile this code? I would hate to have to do all testing on the device. Update Bug Filed: rdar://7477326 A quick and dirty workaround (largely untested, may be buggy): #if TARGET_IPHONE_SIMULATOR #import <objc/runtime.h> enum { OBJC_ASSOCIATION_ASSIGN = 0, OBJC_ASSOCIATION_RETAIN_NONATOMIC = 1, OBJC_ASSOCIATION_COPY_NONATOMIC

Xcode changes location of applications folder on build

情到浓时终转凉″ 提交于 2019-11-29 06:46:50
I am storing an .mp3 in my iOS apps documents directory and saving the path to Core Data. When I rebuild the app Xcode seems to move the application data to a different directory thus making the stored path invalid. Why is this happening and what are the best practices around saving file paths? I am using Xcode 6.2 and have been successful retrieving the file in the past. location of file after downloading: in ~/Library/Developer/CoreSimulator/Devices/82D1931C-590D-45A2-AB9B-8D1D4F2530C5/data/Containers/Data/Application/ $ find . -iname p612.mp3 ./1C070BF8-0E2E-4EAC-99B6-C56E48675E6E/Documents

still dyld: Library not loaded

三世轮回 提交于 2019-11-29 06:40:30
I am integrating Facebook in my application. As required frameworks I added to the project. But the app crashes without loading even first screen. dyld: Library not loaded: /System/Library/Frameworks/AdSupport.framework/AdSupport Referenced from: /var/mobile/Applications/8E09C9AA-CA81-4C26-AEED-B2C632B60A54/Gridlocked.app/Gridlocked Reason: image not found I use xcode 4.5 & my iPad runs iOS 5.1 The app runs fine on simulator (both 6.0 & 5.1) But when I connect iPad & change the deployment target to 5.1(as without this device is not shown to run) app crashes Can anyone pls help to get out of it

Not able to show the Image in proper format from camera in landscape mode

百般思念 提交于 2019-11-29 06:27:55
I am working on iPad App in Ios6, There when we click the right bar button i am giving an action like below: -(IBAction)camerabuttonAction:(id)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.sourceType = UIImagePickerControllerSourceTypeCamera; picker.delegate = self; self.popoverController = [[UIPopoverController alloc] initWithContentViewController:picker]; [self.popoverController presentPopoverFromRect:CGRectMake(50, -250, 500, 300) inView:appDelegate.splitview.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES]; } My problem is,

Error run on IOS emulator after update to IOS 11 - Ionic 3

左心房为你撑大大i 提交于 2019-11-29 06:10:33
问题 After update to IOS 11, command ionic cordova run ios -lc --target="iPhone-6" I have error ** BUILD SUCCEEDED ** No available runtimes could be found for "iPhone 6". [ERROR] An error occurred while running cordova run ios --target iPhone-6 (exit code 1). Simulators list after command ios-sim showdevicetypes Apple-TV-1080p, tvOS 11.0 Apple-TV-4K-4K, tvOS 11.0 Apple-TV-4K-1080p, tvOS 11.0 Apple-Watch-38mm, watchOS 4.0 Apple-Watch-42mm, watchOS 4.0 Apple-Watch-Series-2-38mm, watchOS 4.0 Apple

Xcode 8.2 simulator crash and quits on saving a screenshot while debugging

杀马特。学长 韩版系。学妹 提交于 2019-11-29 06:02:32
问题 I updated my Xcode to 8.2 and since then if I try to take a screenshot while debugging it is crashing and then quits. I tried iOS 9.0 and 10.0 simulators and it happen with both of them.' Thanks Update: 8.2.1 - Doesn't works 8.3 - Works only with Mac OS Sierra 回答1: Please try this approach for taking screenshot You can take videos and screenshots of Simulator using the xcrun Xcode command-line utility. To take a screenshot, run the command xcrun simctl io booted screenshot . To take a video,

ld warning: too many personality routines for compact unwind to encode

丶灬走出姿态 提交于 2019-11-29 05:56:10
The linker for an iOS simulator target I have is reporting the following warning: ld: warning: too many personality routines for compact unwind to encode No line number is given, nor anything else that is actionable. Googling turned up some Apple open source code , but I'm not groking it. What does it mean and what can I do to address it? OrangeDog I found some information in the C++ ABI for Itanium docs that sheds some light on what this means. The personality routine is the function in the C++ (or other language) runtime library which serves as an interface between the system unwind library