Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Xcode 8 troubleshooting to Debugging steps #97

Merged
merged 4 commits into from
Jan 16, 2017

Conversation

dfed
Copy link
Collaborator

@dfed dfed commented Oct 26, 2016

@dfed
Copy link
Collaborator Author

dfed commented Dec 21, 2016

ping :)

@@ -118,6 +118,7 @@ Valet guarantees it will never fail to write to or read from the keychain unless
3. Using `VALSecureEnclaveValet` on an iOS device that doesn't have a Secure Enclave. The Secure Enclave was introduced with the [A7 chip](https://www.apple.com/business/docs/iOS_Security_Guide.pdf), which [first appeared](https://en.wikipedia.org/wiki/Apple_A7#Products_that_include_the_Apple_A7) in the iPhone 5S, iPad Air, and iPad Mini 2.
4. Running your app in DEBUG from Xcode. Xcode sometimes does not properly sign your app, which causes a [failure to access keychain](https://github.com/square/Valet/issues/10#issuecomment-114408954) due to entitlements. If you run into this issue, just hit Run in Xcode again. This signing issue will not occur in properly signed (not DEBUG) builds.
5. Running your app on device or in the simulator with a debugger attached may also [cause an entitlements error](https://forums.developer.apple.com/thread/4743) to be returned when reading from or writing to the keychain. To work around this issue on device, run the app without the debugger attached. After running once without the debugger attached the keychain will usually behave properly for a few runs with the debugger attached before the process needs to be repeated.
6. Running your app without the application-identifier entitlement. Xcode 8 introduced a requirement that all schemes must be signed with the application-identifier entitlement to access the keychain.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per our discussions, I think this needs to specify the workaround for tests targets where you cannot add the entitlement whatsoever, and that adding a tests target host-app allows testing to work as necessary.

@dfed
Copy link
Collaborator Author

dfed commented Jan 16, 2017

Have a verbal LGTM from @hailstorm350. Merging when green.

@dfed dfed merged commit d90582a into master Jan 16, 2017
@dfed dfed deleted the federman/update_readme_96 branch January 16, 2017 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants