It seems that the directory for the iOS Simulator has changed. It used to be in ~/Library/Application\ Support/iPhone\ Simulator/
and now it's in ~/Library/Developer/CoreSimulator/Devices/
.
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
According to charles documentation
Read Here
So just quit your simulator, open charles and then run the app again. After that you can track your network calls.
NOTE: Your network calls will fail if you quit Charles. So you will need to either quit the simulator and run it again or open Charles again.
Update for iOS 9: You have to disable App Transport Security to use Charles!
http://www.charlesproxy.com/documentation/using-charles/ssl-certificates/
The 'Install Charles Root Certificate in iOS simulators' does not work in the current version of CharlesProxy (3.11) with Xcode 7 / iOS 9 simulators.
Instead, use the 'Install Charles Root Certificate on a Mobile Device or Remote Browser...' option. This will give you a url for the certificate.
If you open this url in Safari in the simulator, you will then be given the option to install the certificate.
You still then need to disable app transport security. I don't understand why this is necessary when you have the certificate installed; I guess CharlesProxy does not use sufficiently large keys/signatures.
Just (re)starting the Simulator after Charles starts fixed it for me.