ios-simulator

Static library gives error on iOS simulator and works on iOS device

耗尽温柔 提交于 2019-12-03 14:22:52
Currently I'm working on a iOS application (iOS 6), In which I need to implement a static library. I successfully implemented the Static library using this tutorial . And I successfully added the static library to other project and Installed the app to iPhone !. It's working successfully. But my issue is when I tried to run it on my simulator some errors are coming: "_OBJC_CLASS_$_MMPAlert", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) I added the target

Accessibility Identifier not visible in Accessibility Inspector with iOS Simulator

痴心易碎 提交于 2019-12-03 13:09:36
I wanted to use the Accessibility Inspector to verify all the accessibility identifiers in my app running in the simulator (iOS 9.2). Accessibility Inspector is able to return multiple accessibility fields but not the identifiers. Any idea why and how I could see them ? You will never be able to (without changes from Apple) see this property in Accessibility Inspector, because it isn't really used for accessibility. That it is associated with accessibility is a misnomer, related to accessibility API's generic value in identifying elements for automated testing using UI Automation, because

iPhone 5.1 Simulator (retina) looks so big

萝らか妹 提交于 2019-12-03 12:47:03
I just upgraded Xcode from 4.2 to 4.3.3. I then launches iOS Simulator (with "Hardware -> Device" set to "iPhone (Retina)") and the simulator now appears so big that the app page has literally to be scrolled!! (previously it was just right ...no scrolling needed). Even the 'Home Page' in the simulator seems to need scrolling! Here's the screenshot...note that the 'home page' has the scroll bar in the right and bottom) ...why is this? Shouldn't it fit exactly and not need any scrolling? I have a 17" laptop that is 1920x1200 resolution, the newest iPad has a resolution of 2048x1536. The iPad

Is there a way to get iOS 7 simulator on Xcode 7

情到浓时终转凉″ 提交于 2019-12-03 12:16:21
问题 I just updated my Xcode to the newest version (7.0 7A220) and I lost the iOS 7 simulator that I had in the previous version. I still have the iOS 7 SDK and was wondering if there is way to use it on the newest version of Xcode, instead of installing another version of Xcode on my OS X. 回答1: As for my initial analysis referred from link you cant install it and use older version of Xcode version for using respective iOS simulators. To use iOS 7.1 go for Xcode 6.4 or earlier. Install Xcode 6.4

How can i test tilt efftect? - IPhone Simulator

允我心安 提交于 2019-12-03 12:00:23
I am trying to write a game. That game uses tilt effect, but i don't know how to test it on Iphone Simulator 3.0. I search it on internet, but the result is zero. How can i...? Short answer: You can't, not directly. You have to use a real device. Longer answer: You could subclass UIAccelerometer and do as you like. You could simulate input, or write a client and server pair that sends acceleration information from a real device to your app running in the simulator, or from your Macbook's accelerometer if you fancy waving your laptop around. Try https://code.google.com/p/accelerometer-simulator

Action Trigger when I hold UIButton for 2 second in iPhone

南楼画角 提交于 2019-12-03 11:43:21
问题 I have a UIButton in my application and an action which is triggered when I TouchDown UIButton . Is it possible to detect a Touch-and-Hold on the UIButton on the iPhone? I want my action to trigger when the user holds the button for 2 seconds or more. Any Ideas? 回答1: UILongPressGestureRecognizer is what you need. For example, UILongPressGestureRecognizer *longPress_gr = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(doAction:)]; [longPress_gr

Can't visit website on iOS Simulator—'This Connection Is Not Private'

你说的曾经没有我的故事 提交于 2019-12-03 11:42:37
问题 I'm currently building a watch app extension and want to use the simulator because it is much easier and quicker than building to my actual Apple Watch every time. However, I've run into a problem with the simulator where I can't visit any websites due to the error 'This Connection Is Not Private'. This wouldn't normally be a problem except in my case I need to login into my iOS using Facebook and I face the same problem there. The message is slightly different when using

Unable to run app in Simulator XCode 6.0

☆樱花仙子☆ 提交于 2019-12-03 11:33:31
问题 After migrating from XCode 5.0 to XCode 6.0 the project fails to run with the following error. An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4) Any suggestions? 回答1: iOS Simulator -> Reset Contents and Settings Worked for me! iOS Simulator -> Reset Contents and Settings... -> Reset referenced from: http://qiita.com/tajihiro/items/f6f50b56162c93d25c90 回答2: I had this error too. My solution was product->clean 回答3: As described in my answer to the

How can I simulate app being killed in background?

偶尔善良 提交于 2019-12-03 11:32:58
问题 I'm trying to verify that my app (App1) behaves correctly when it is shut down by the system after it launches another app (App2). Is there any way to simulate or force this behavior? Telling the simulator to simulate a memory warning while App2 is running doesn't do anything until App1 is brought back to the foreground. Would killing App1 from the debugger simulate the same sequence of app events? EDIT: My app is placed in the background when it launches a second app to handle a file. This

Repeated request for microphone permission on iOS Simulator

余生颓废 提交于 2019-12-03 10:57:31
I'm working with Xcode 10.1 (10B61) on an app that needs permission to use the microphone. (Almost) Every time I start the app from Xcode (in simulator) I get a system popup: "Appname" would like to access the microphone "Privacy - Microphone Usage Description""> It doesn't matter if I select "Don't Allow" or "OK". This message keeps popping up. How can I fix it? Update [fixed] This issue seems to be fixed in Xcode 10.2 👍 You can get rid of this following this steps: Go to "Security & Privacy" Settings on macOS. Select "Microphone" on the left panel. Uncheck the Xcode option on the right panel