ios-simulator

Launching Unit Tests from ios-sim doesn't execute all tests

霸气de小男生 提交于 2019-12-11 03:13:49
问题 I'm trying to launch tests from my CI using ios-sim using approach described here: https://confluence.atlassian.com/display/BAMBOO/Xcode , but instead of SenTest I'm using XCTest in my application, so last parameter should be not --args -SenTest All but something like -args -XCTest All and if I use such parameter, not all tests are executed. How can I specify executing all tests using XCtest? If I use --args -XCTest -test All none of tests are executed. The full launch command: ios-sim launch

xcode swift admob not showing live ads on simulator

烂漫一生 提交于 2019-12-11 03:12:51
问题 I have implemented AdMob before on Android apps and unless I specified a test ad the Android Simulator would show up live ads. @IBOutlet weak var bannerView: GADBannerView! //Display Ads self.bannerView.adUnitID = "mypubid" self.bannerView.rootViewController = self var request: GADRequest = GADRequest() self.bannerView.loadRequest(request) I dont use any .test devices GAD_SIMULATOR, so it shouldnt display any test ads, but what I see after the app loads is this test banner: http://i.stack

Testing iOS testing on real devices vs. Simulator

两盒软妹~` 提交于 2019-12-11 02:17:40
问题 I am new to iPhone/iPad development and I am close to finishing up my first app and I am looking for some general advice. I know it is important to test on actual devices and not just the simulator. What are the types of things people generally encounter when testing on a deal device that they don't see in the simulator? The app itself is mainly a way to track online deals and that type of thing. It doesn't need anything special in term of using things like the camera or GPS. 回答1: It's just

The package “BluetoothSDK.pkg” is untrusted

眉间皱痕 提交于 2019-12-11 01:59:50
问题 I have just reset my OS to 10.7 (latest my mac can go), and downloaded Xcode. Whenever I try to install the older iOS simulators I get an error The package “iPhoneSimulator… .pkg” is untrusted. And when installing command line tools, I get the error The package “BluetoothSDK.pkg” is untrusted. How can I install these? BTW I got Xcode 4.6 回答1: I had the same problem installing the Command Line Tools. Then I found a binary at https://developer.apple.com/downloads/ that worked. Look for Command

SwiftUI only showing a black screen

為{幸葍}努か 提交于 2019-12-11 01:49:20
问题 I had created a few projects in SwiftUI that were perfectly fine, before I went on holiday around 2 weeks ago. When I got back, I updated Xcode and my iPhone. The code for SwiftUI is not relevant as it was all working perfectly fine before. All I am getting on multiple projects tested is just a plain black screen. What could be causing all my projects just to show a black screen, when they worked before updating Xcode and my device? Versions: My device - 13.0 beta 4 Simulators don't work -

QLPreviewController crashing when tapping share button, internal consistency nib bundle error

戏子无情 提交于 2019-12-11 01:36:33
问题 I'm presenting a QLPreviewController modally. Everything works-- it pops up, shows the preview item and everything. However, once the share button is tapped, the app crashes on the device and in the simulator with this: 2013-05-03 20:10:53.563 appname[16860:c07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle <{{app_path}}> (loaded)' with name '_UIDocumentActivityViewController'' Here is the relevant code:

Cannot run protractor scripts using code generated by Appium for IOS it says that findelement is not a function

穿精又带淫゛_ 提交于 2019-12-11 01:06:45
问题 I want to automate my tests for an Angular JS site using Ipad Air simulator, appium and protractor but the problem that i'm not able to run correctly the script. This is my config file ​exports.config = { allScriptsTimeout: 600000, seleniumAddress: 'http://0.0.0.0:4723/wd/hub', specs: [ 'testsuite/test3.js' ], capabilities: { browserName: 'safari', 'appium-version': '1.4.13', platformName: 'iOS', platformVersion: '9.3', deviceName: 'iPad Air' }, chromeOnly: false, baseUrl: 'http://10.0.22.82

Xcode iOS Simulator: can I use the mouse as pretend Apple Pencil input (on iPad Pro), for testing?

六月ゝ 毕业季﹏ 提交于 2019-12-11 00:15:52
问题 Is it possible to do this (with a menu, a shortcut, or a modifier key + mouse)? For example, you can use the mouse to test simple touch gestures in the simulator, like left mouse acts as single finger, and shift / option allow for different two finger gestures. I have been unable to find any documentation one way or the other about whether this is possible, despite this developer.apple.com page where the simple, easy-to-understand API changes for supporting Apple Pencil hardware are

“Display P3” screenshots from iOS Simulator

我只是一个虾纸丫 提交于 2019-12-10 21:25:30
问题 Is there a way to get "Display P3" screenshots from the simulator? The difference in the greens is terrible! But having to do 55 screenshots from the device instead is much more work. I'm on a MacBook Pro with Touch Bar that should technically be able to display P3 colors. 回答1: No. Unfortunately, the QuartzCore software renderer only supports sRGB. There is no way to get extended range sRGB or P3 out of that render pipeline in the simulator. Regarding the lack of color matching, the thing you

iOS Simulator could not find the SDK, SDK may need to be reinstalled

半城伤御伤魂 提交于 2019-12-10 21:11:01
问题 Here I am stuck in another problem,am working on an iOS Application today and as i run my Application for iPhone 5.0 Simulator got some weird issue on that simulator only. There were two window pop Over alert on my MacBook Screen when i was trying run again and again getting same issue for that simulator only.that pop over alert windows showing below quotation. "iOS Simulator could not find the SDK. The SDK may need to be reinstalled." "The simulated application quit." It seems that this