ios-simulator

How are XIBs loaded for localized apps?

大城市里の小女人 提交于 2019-11-29 20:29:35
问题 I found after a couple of days of successfully running and debugging localized apps on the Simulator it (or the XCode deployment process) got into a state where, if the Simulator was set to one of my supported local languages, it would crash on startup with the following stack: 3 CoreFoundation 0x01780e6a +[NSException raise:format:] + 58 4 UIKit 0x008050fa -[UINib instantiateWithOwner:options:] + 2024 5 UIKit 0x00806ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168 6

Creating an iOS Simulator Build of CocoaPods project

随声附和 提交于 2019-11-29 20:11:21
I need to create a simulator build in order to submit my app to facebook team for further review of my open graph. They have a instruction to create that here facebook instruction But I use cocoapods and I can not make this build. everytime it gives me error. Pradip Vanparia xcodebuild -arch i386 -sdk iphonesimulator{version} -workspace [projectName].xcworkspace -scheme [projectName] Follow the steps Click here Here is the another easy method to create .zip file Step 1: open finder and press command⌘ + shift⇧ + g Step 2: paste "~/Library/Developer/Xcode/DerivedData" Step 3: select your_app

startMonitoringSignificantLocationChanges not working in swift

折月煮酒 提交于 2019-11-29 19:52:07
问题 I'd added CLLocationManager in my app using Swift in the AppDelegate file. In the Appdelegate.swift file, import CoreLocation @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, CLLocationManagerDelegate { var locationManager: CLLocationManager! In the didbecomeActive method: func applicationDidBecomeActive(application: UIApplication) { if((locationManager) != nil) { locationManager.stopMonitoringSignificantLocationChanges() locationManager.delegate = nil locationManager

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

六眼飞鱼酱① 提交于 2019-11-29 19:31:17
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/react-native/local-cli/cliEntry.js:117:22) however, when I run on Xcode, it works fine { "devicetypes" :

Crash logs generated by iPhone Simulator?

天大地大妈咪最大 提交于 2019-11-29 19:30:06
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. ohhorob 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_ACCESS signal. Update Currently, (OSX 10.11.6), the .crash logs in ~/Library/Logs/DiagnosticReports ,

Can I start the iPhone simulator without “Build and Run”?

半腔热情 提交于 2019-11-29 19:29:01
I want to delete an app in the simulator before I "build and run". How can I start the simulator so I can do the deletion? If I start it by "build and run" I get a long log output that takes a while because of a bug I'm trying to fix. I'd like to avoid that. The simulator is just an application, and as such you can run it like any other application. To run the simulator straight from terminal prepend these locations with the open command Xcode 7.x, 8.x, and 9.x In Xcode 7.x, the iPhone Simulator has moved again: /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app . Xcode 6.x

Xcode Simulator animations extremely slow when played in editor

ⅰ亾dé卋堺 提交于 2019-11-29 19:24:51
Recently I have experienced, that Xcode's simulator has become extremely slow. Also if I create a new app and run it i, the transition between the launch screen and the first view controller takes about 3 seconds. Luckily it is only the iOS 9 simulator and not iOS 8 or lower. I have upgraded to Xcode 6.4 and I also have Xcode 7.0 beta 3 installed. Has anyone experienced the same? I have tried to uninstall both Xcode versions, but it didn't help. If you press command+T it triggers the 'Slow animations' feature. I didn't noticed this setting until now. Doh! In Simulator menu, go to Debug > Slow

iOS 6 (iPhone/iPad) Image Upload “Request Body Stream Exhausted” with NTLM/Windows Authentication

杀马特。学长 韩版系。学妹 提交于 2019-11-29 19:18:49
问题 I am working on trying to get iOS 6 to use XMLHttpRequest POSTs to upload images. This works on desktop and Android web browsers, but with iOS 6 I am getting an error on the page being posted to: "Request Body Stream Exhausted". (Using iOS Simulator with the Safari Web Inspector). Here is the basic code of the page: function fileSelected() { var file = document.getElementById('fileToUpload').files[0]; if (file) { var fileSize = 0; if (file.size > 1024 * 1024) fileSize = (Math.round(file.size

Red dot next to app title?

泄露秘密 提交于 2019-11-29 18:52:55
问题 On the simulator I have noticed that my app has a red circle next to the app title, similar to the blue circle that appears next to newly downloaded apps, however just red instead. This is what it looks like: What does this imply? 回答1: I got the Actual Solution for this problem it is due to provisioning Profile. if you are using live app provisioning profile in your app Build setting , change it and after that you will never see that orange circle. Thanks 回答2: If to believe to other answers

Is there a quicker / better way to clear the iPhone Simulator cache than deleting its directory?

≯℡__Kan透↙ 提交于 2019-11-29 18:46:35
So I'm still reasonably new to iOS development and I'm finding myself quite regularly needing to delete either DerivedData, or the contents of the iPhone Simulator directory, to get things to actually execute from my code. Clean in Xcode doesn't do the same as emptying those directories, right? And if not, is there an easier way to do it than lugging Finder around to get to them, and clearing them? 66:99 and climbing: Yes , there is a better way than going into every single simulator in town, and resetting contents and settings one at a time. Also much better than looking into your simulator's