ios-simulator

Simulate force touch / 3D touch on iPhone 6S or iPhone 6S Plus simulators

点点圈 提交于 2019-11-26 18:29:39
I am trying to simulate a force touch using Xcode 7 GM on the iPhone 6S or iPhone 6S Plus simulator. In particular, I am trying to simulate the force touch on the icon of the test app which is implementing Application Shortcuts. Let me know if there is a solution to simulate this, I tried the long press which the Watch simulator uses to simulate force touch, didn't work since the iPhone captures it as a long press gesture. Update: I downloaded the ViewControllerPreview Sample code from Apple. Running their sample application I see that the simulator, although an iPhone 6s, does not support for

What is TIC Read Status 1:57 in iOS11/Xcode 9?

让人想犯罪 __ 提交于 2019-11-26 18:24:12
After updating to Xcode 9, using Swift 3 and the iPhone X simulator, my console is full of: TIC Read Status [11:0x0]: 1:57 TIC Read Status [11:0x0]: 1:57 TIC Read Status [11:0x0]: 1:57 ... What is that and how do I fix it? Help is very appreciated. PS: I prefer not to just "silence" it with an Environment Variable in the build scheme. Apple staff gave the following answer: TIC expands to “TCP I/O connection”, which is a subsystem within CFNetwork that runs a TCP connection 1 and 57 are the CFStreamError domain and code, respectively; a domain of 1 is kCFStreamErrorDomainPOSIX and, within that

How can I programmatically determine if my app is running in the iphone simulator?

隐身守侯 提交于 2019-11-26 18:04:33
As the question states, I would mainly like to know whether or not my code is running in the simulator, but would also be interested in knowing the specific iphone version that is running or being simulated. EDIT: I added the word 'programmatically' to the question name. The point of my question is to be able to dynamically include / exclude code depending on which version / simulator is running, so I'd really be looking for something like a pre-processor directive that can provide me this info. Airsource Ltd Already asked, but with a very different title. What #defines are set up by Xcode

How to change Xcode Project name

你说的曾经没有我的故事 提交于 2019-11-26 17:56:09
问题 I have developed my app in Xcode for iPhone, in start I have just named it without secnec now I want to change my app name I have replace my old app name with new one as I have found the name in my app, but its still giving me one error... Desktop/New name/old name_Prefix.pch: No such file or directory when I have change oldname_prefix.pch with newname_prefix.pch .. 回答1: For Xcode 4 or later: Open a project Select Project Navigator Highlight project name Single click on project name For Xcode

Stop “developer tools access needs to take control of another process for debugging to continue” alert

左心房为你撑大大i 提交于 2019-11-26 17:54:35
问题 I recently upgraded to 10.7.3, and when I try to debug my iOS project in the simulator for the first time after logging in, I'm prompted with the following two alerts: My user is an admin user. I never saw these alerts before. How do I get them to stop? EDIT I've verified that I'm a member of the _developer group using id -a . 回答1: There's a much simpler solution for this. Try running the following command: sudo /usr/sbin/DevToolsSecurity --enable 回答2: enable develoer mode: In Terminal run

Error opening iOS Simulator with iOS 8 beta version: “Unable to boot the iOS Simulator”

柔情痞子 提交于 2019-11-26 17:34:00
I recently installed the beta of Xcode Version 6 in OS X Mavericks, with which comes the iOS simulator for iOS 8. I've managed to successfully run from Xcode 6 beta on a device with iOS 8 Beta, but opening the simulator always get the same error I have tried to change the hardware version of iPhone 4s, iPhone 5, ... in the simulator and still gives the same error: "Unable to boot the iOS Simulator". I'm working with Xcode 5.1 at the same time in Mavericks, any suggestion to solve this? Is a possible problem for run this simulator in Mavericks because is only for OS X 10.10? Thanks. After I

IOS 8 Simulator unable to boot

与世无争的帅哥 提交于 2019-11-26 17:33:55
问题 When I try to run my app with Xcode 6 Beta 4 on the Simulator iOS 8.0 I always get this error: Unable to boot the iOS Simulator Actually I found some similar questions on this site and I tried all the answers and I still couldn't solve it. I had the same error with the Beta 2 version of Xcode 6 so I decided to wait. But now this is not normal anymore. Did anyone find a reason why this is happening and found the solution? 回答1: I am very happy that finally my issue resolved. Thanks to apple who

iOS - color on Xcode simulator is different from the color on device

泄露秘密 提交于 2019-11-26 17:29:55
Overview The background color of my iPhone app in the simulator (iMac) looks different from the color on the device (iPhone 3GS). EDIT (following section has been added) The following are all different: story board color (xib file) simulator color device color I suppose I should go with how it looks on the device. Questions Is this is a common problem other developers face and is there a way to match the colors (systematic procedure) ? will the color look different on different versions of iPhone (3gs / 4 / 4s) or all the color ? Am I missing something, is there any specific color profile I

iOS 5 Black screen after segue

心不动则不痛 提交于 2019-11-26 17:21:06
问题 I have an iOS 5 application with a storyboard and two scenes. Scene 1 is a selection list while Scene 2 shows details for each selection In Scene 1 I need to pass a variable and I do that with: //Handles the selection -(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { Guests *myGuests =[guestList objectAtIndex:[indexPath row]]; selectedGuest = [[NSString alloc] initWithFormat:@"You have selected %@", myGuests.guestID]; [self

Unable to boot iOS 8 Simulator

只愿长相守 提交于 2019-11-26 16:48:07
I have just updated my Xcode to 6.0.1 from Mac App Store, and my OS version is OS X 10.9.5. The problem is that the iOS 8 Simulator is not loading, but the iOS 7 simulator is working fine. Every time I try to boot an iOS 8 simulator device, I get an error message: "Unable to boot iOS Simulator" The main cause of this error is that DYLD_INSERT_LIBRARIES is set. I suggest you unset DYLD_INSERT_LIBRARIES (likely in /etc/launchd.conf) or otherwise uninstall the product that set it, and then reboot. OS X Yosemite has a software change to deal with this situation, so if you need the product that was