ios-simulator

Duplicate iPhone Simulators Appeared on My Xcode

末鹿安然 提交于 2019-11-30 11:24:01
问题 A duplicate iPhone simulator just appeared after I deleted ~/Library/Developer/Xcode/CoreSimulator folder How to solve this problem? I've tried to delete ~/Library/Developer/Xcode folder and ~/Library/Application Support/iPhoneSimulator folder. But all failed. 回答1: 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. 回答2: I have a same issue after installing

Where can I download the iOS 10 simulator runtime file?

家住魔仙堡 提交于 2019-11-30 11:22:55
问题 I want to test my apps in the iOS 10 simulator, but I'm not sure where to get the .runtime file for iOS 10. I don't see a download for it under Components in Xcode 8. Where can I download the .runtime file for iOS 10 (if it exists)? Thanks in advance! EDIT: I forgot to mention: As I was trying to fix another problem (before I asked this question), I ended up deleting all of my runtimes and redownloading them (except for iOS 10). 回答1: I ran into this issue earlier today. After installing Xcode

Why does the LLDB Debugger constantly fail to attach?

可紊 提交于 2019-11-30 11:22:01
I have seen a lot of answers for this question: error: failed to attach to process ID as switch to GDB . But no one addresses the reason of why it happens? Attaching works fine with the GDB debugger but the default and recommended project setting is LLDB. Can anybody explain why LLDB fails? Is it a common bug or am I doing something wrong? Alternatively, how can I set GDB as my default debugger without changing it manually when creating the new projects? System Info: OS: Lion RAM: 5GB XCode: Version 4.6 (4H127) Device: Mac mini My localhost setting: Make sure you have localhost mapped to 127.0

iOS Question. Can I distribute the Xcode simulator versions of my app?

人盡茶涼 提交于 2019-11-30 11:18:27
I would like to send someone the Xcode simulator version - not the device version - of my iPad app. I have located the .app file in the Finder. Do I just zip it up and send it off or is it more complicated than that? Thanks, Doug UPDATE Chrisbtoo got the answer on this one however he left of some critical bits for those of you trying this at home: Path to Xcode simulator (the simulator can be run standalone.): /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app Path to app that appears in the home screen of the simulator: /Users/turner/Library/Application

iOS Simulator would like to access microphone every time

柔情痞子 提交于 2019-11-30 11:15:52
问题 Since the update to macOS Mojave, I get this alert every time I run on the simulator: "<AppName>" would like to access the microphone. It is stopping the simulator from running! How can I stop it? 回答1: What worked for me was to change the Hardware Audio Input to Internal Microphone . What I believe happen is that when you give access it changes the audio input to your headphones or macbook. My concern was that I am watching a tutorial and it keeps changing the audio frequency and it kept

Why there is no “Home” button in iPad simulator in iOS 5.1 SDK?

和自甴很熟 提交于 2019-11-30 10:52:12
问题 How to simulator the action of "press the home button"? 回答1: Use the Hardware > Home menu item, or hit Cmd + Shift + H 回答2: Works great. COMMAND+SHIFT+ H(double tap) 回答3: I want to say it's because they want us to remember the new resolution when debugging. edit: My answer is to the title directly 回答4: iPhone Simulator Key Shortcuts Command-Left Arrow Rotate left Command-Right Arrow Rotate right Command-Shift-H go home. leave the application and return to the springboard home screen Command-L

Dynamically change UITable cell height?

丶灬走出姿态 提交于 2019-11-30 10:47:04
I need to resize the cell height based on the content size/length.tried several methods, which one gives the exact height without overlapping? see this tutorial for change UITableViewCell Height Dynamically.. Resizing-A-UITableViewCell and also use this tutorial.. uitableviewcell-dynamic-height also use tableView:heightForRowAtIndexPath: method for set height of cell with indexpath Guru This is from my previous answer - Customizing UITableViewCell's height : Use this method to get the text height of the text -(CGFloat)getLabelHeightForText:(NSString *)text andWidth:(CGFloat)labelWidth { CGSize

iOS simulator only uses the first app folder for localStorage files but creates a new app folder for everything else

浪子不回头ぞ 提交于 2019-11-30 10:23:06
I'm trying to delete the localStorage files of my app, and to do that I need to know where the app stores its cached data, but I don't consistently get the correct path in the iOS simulator, this only works consistently on the phone. I think this has something to do with the fact that Xcode renames the app directory when you rebuild. If I delete the entire /Users/john_doe/Library/Developer/CoreSimulator/Devices/ and start the app NSSearchPathForDirectoriesInDomains finds the correct folder. On the next build the path that is returned is the new application directory, but the iOS simulator

`react-native run-ios` returns Error: Could not find iPhone X simulator

不羁岁月 提交于 2019-11-30 10:18:10
问题 whenever I run react-native run-ios , I get Could not find iPhone X simulator Error: Could not find iPhone X simulator at resolve (calendarPractice/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13) at new Promise (<anonymous>) at runOnSimulator (calendarPractice/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10) at Object.runIOS [as func] (calendarPractice/node_modules/react-native/local-cli/runIOS/runIOS.js:106:12) at Promise.resolve.then (calendarPractice/node_modules

Crash logs generated by iPhone Simulator?

安稳与你 提交于 2019-11-30 10:14:07
问题 Are there any crash logs generated by iPhone Simulator? the Simulator crashes a lot but not leaving any traces in Console... the crash log will be useful. 回答1: The console will show the NSLog() output from an app running in the simulator. The crash logs are saved to file. I have found some in my home directory under ~/Library/Logs/DiagnosticReports/ They have a file extension of .crash Something I haven't yet figured out is how to get them to generate even if the debugger grabs the EXC_BAD