ios-simulator

In Xcode 6, how do I use the hardware keyboard but display the software keyboard in the iOS simulator

我的未来我决定 提交于 2019-12-01 14:32:28
问题 In Xcode 6, the iOS simulator seems to either show no keyboard, meaning you can type but can't see the positioning and effect of the software keyboard, or it shows the software keyboard, meaning you can see it on the screen, but can't type on it - and typing on the soft keyboard with the mouse is really slow! How do I get the old behaviour back, where you can see the software keyboard, but type on the hardware one? 回答1: Go to the simulator's Hardware menu. Make sure Connect Hardware Keyboard

Undefined symbols for architecture x86_64 when building for ARM64

耗尽温柔 提交于 2019-12-01 12:20:20
I built the cryptopp lib to using for an ios application. but isn't working , only told me "Undefined symbols for architecture x86_64: "CryptoPP::ProxyFilter::IsolatedFlush(bool, bool)", referenced from: " and on and on... and I follow the Crypopp wiki page's guideline, but it still crashing. how can I fix that? ld: warning: ignoring file [path]/libcryptopp.a, missing required architecture x86_64 in file [path]/libcryptopp.a (4 slices)CryptoPP::ProxyFilter::IsolatedFlush(bool, bool)", referenced from: ... ... ... (118 things) I tried to build with github's prebuilt cryptopp but it doesn't work

UITextField Crash in Simulator not in iPhone 4 (4.2)

给你一囗甜甜゛ 提交于 2019-12-01 12:10:30
问题 I'm facing a strange issue and have no idea how to solve it. I have in my app a simple viewcontroller with 3 textfield. I have define them as IBOutlet in my .h and linked them with the file's owner. Two of them are define with default Keyboard, the other use phone pad keyboard. When i Try to edit the phone field (phone pad keyboard) it's ok. Keyboard appear, field can be modify. When i try to edit one of the 2 others, then the app crash for the reason :"Terminating in response to SpringBoard

Xcode 4.5 iOS 6.0 simulator orientation not working

二次信任 提交于 2019-12-01 12:07:26
I have updated my Xcode to 4.5 , I have implemented the orientation methods as below -(BOOL)shouldAutorotate{ return YES; } -(NSUInteger)supportedInterfaceOrientations{ return UIInterfaceOrientationMaskAll; } I am setting the frame sizes of buttons ,labels,images in willRotateToInterfaceOrientation method -(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration{ if ([[UIDevice currentDevice] orientation] == UIDeviceOrientationPortrait )|| ([[UIDevice currentDevice] orientation] == UIDeviceOrientationPortraitUpsideDown )) { // set

Its too many simulators in Xcode 6.4

你离开我真会死。 提交于 2019-12-01 11:40:39
i have too many in my xCode application i try to delete but just a moment its back to device list how to remove it. xcode Version 6.4 (6E35b) pic from my xCode pic from device list Quit Xcode and the Simulator, and say (in the Terminal): $ xcrun simctl delete That will delete them all and now you can start fresh. It's good to do this from time to time... BLC It may happen because of multiple Xcode installed or during Xcode upgrades. The only thing that need to be done is to open Xcode -> Window -> Devices select duplicated device and delete it. Copied from this answer 来源: https://stackoverflow

Its too many simulators in Xcode 6.4

允我心安 提交于 2019-12-01 10:58:47
问题 i have too many in my xCode application i try to delete but just a moment its back to device list how to remove it. xcode Version 6.4 (6E35b) pic from my xCode pic from device list 回答1: Quit Xcode and the Simulator, and say (in the Terminal): $ xcrun simctl delete That will delete them all and now you can start fresh. It's good to do this from time to time... 回答2: It may happen because of multiple Xcode installed or during Xcode upgrades. The only thing that need to be done is to open Xcode -

Xcode 4.5 iOS 6.0 simulator orientation not working

送分小仙女□ 提交于 2019-12-01 10:43:44
问题 I have updated my Xcode to 4.5 , I have implemented the orientation methods as below -(BOOL)shouldAutorotate{ return YES; } -(NSUInteger)supportedInterfaceOrientations{ return UIInterfaceOrientationMaskAll; } I am setting the frame sizes of buttons ,labels,images in willRotateToInterfaceOrientation method -(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration{ if ([[UIDevice currentDevice] orientation] ==

EXC_BAD_ACCESS on device, but fine on Simulator

杀马特。学长 韩版系。学妹 提交于 2019-12-01 09:19:48
I have a scroll view app which runs fine on the simulator, however, when installed on the device, it gives me an EXC_BAD_ACCESS, when i attempt to scroll one page. I have ran it through Instruments with Allocations and Leaks, but nothing is leaked and no zombies are messaged... i'm just curious what could cause such a difference in simulator vs device? Any ways to debug this, since my symbolicated crash log (partial below), doesn't seem to be very symbolicated. Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000f Crashed Thread: 0 Thread 0 Crashed: 0

Wrong Geolocation with React Native and iOS simulator

为君一笑 提交于 2019-12-01 09:03:37
I am working with react-native-maps and using the react-native api for geolocation. When I am using location through the api what comes back on the simulator shows me in San Francisco not in Denver, CO where I am located. Is there a reason as to why my location would not show where I am at? my function that runs the location // Get current users locaiton on load componentDidMount() { navigator.geolocation.getCurrentPosition((position) => { console.log(position); let newLat = parseFloat(position.coords.latitude); console.log("newLat", newLat); let newLng = parseFloat(position.coords.longitude);

iPhone crash- Message sent to deallocated instance

萝らか妹 提交于 2019-12-01 07:30:04
问题 Ok, here is the error I am getting: -[CFRunLoopTimer invalidate]: message sent to deallocated instance 0x109b05a0 (gdb) Here is the code causing the crash: if (waitingOpponentTimer) { [waitingOpponentTimer invalidate]; //<-- Crash/error occurs here waitingOpponentTimer = nil; } And elsewhere: NSTimer* waitingOpponentTimer; And also: waitingOpponentTimer = [NSTimer scheduledTimerWithTimeInterval:10.0f target:self selector:@selector(waitingOpponentTimeOut)userInfo:nil repeats:NO]; There is NO