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

Trouble Loading Keychain Data Xcode 10.2 Swift 4 #207

Open
MayankAgarwal04 opened this issue Mar 29, 2019 · 4 comments · May be fixed by #210
Open

Trouble Loading Keychain Data Xcode 10.2 Swift 4 #207

MayankAgarwal04 opened this issue Mar 29, 2019 · 4 comments · May be fixed by #210

Comments

@MayankAgarwal04
Copy link

MayankAgarwal04 commented Mar 29, 2019

Hi Team,

I am having a trouble loading the keychain data. App crash when loadDataForUserAccount is called. Mac OS 10.14.4 and Xcode 10.2 Swift 4

I updated my Mac os to 10.14.4 and updated my Xcode to 10.2 & project swift version 4 to convert 5. After that when first time Xcode Run project login successfully after second time Xcode project Run app crash I tried to error "expression produced error: error: /var/folders/s1/: error: no type named 'ReadRequest' in module
Swift._DebuggerSupport.stringForPrintObject(Swift.UnsafePointer<project.ReadRequest>(bitPattern: 0x13e1e2890)!.pointee)".

Let me know if I'm doing anything wrong from my side. Is there any particular reason for that?

Error Function :-

public static func loadDataForUserAccount(userAccount: String, inService service: String = LocksmithDefaultService) -> [String: Any]? {
struct ReadRequest: GenericPasswordSecureStorable, ReadableSecureStorable {
let service: String
let account: String
}

    let request = ReadRequest(service: service, account: userAccount)
    **return request.readFromSecureStore()?.data**
}

Error Message :-

expression produced error: error: /var/folders/s1/: error: no type named 'ReadRequest' in module ''
Swift._DebuggerSupport.stringForPrintObject(Swift.UnsafePointer<projectName.ReadRequest>(bitPattern: 0x13e1e2890)!.pointee)

@matthewpalmer @victor @jonallured @hermanolsson @jakemarsh @diejmon @marcelofabri @edwellbrook @larslockefeer

@MayankAgarwal04 MayankAgarwal04 changed the title DebuggerSupport Error Trouble Loading Keychain Data Xcode 10.2 Mar 29, 2019
@MayankAgarwal04 MayankAgarwal04 changed the title Trouble Loading Keychain Data Xcode 10.2 Trouble Loading Keychain Data Xcode 10.2 Swift 4 Mar 29, 2019
@romkoth
Copy link

romkoth commented Mar 30, 2019

Hi all, I have the same issue, Xcode 10.2 and iOS simulator 12.2
Tried to erase all content and settings, haven;t helped

@LaurentShala
Copy link

Getting same error as well. Definitely a problem when using this Pod on Xcode 10.2.

@albertbori
Copy link

albertbori commented Apr 8, 2019

Still an issue. At the line specified by the OP, my crash report says:

Exception Type:  SIGSEGV
Exception Codes: SEGV_ACCERR at 0x9a0f3b28

Edit: I removed the Locksmith cocoapod completely. Then, I copied the Source files from Locksmith into my main project, and the error went away. So this error likely has something to do with cocoapods or project configuration.

@stephanheilner stephanheilner linked a pull request Apr 11, 2019 that will close this issue
@felipeplets
Copy link

I had the same issue before and did the following steps:

  1. Updated CocoaPods to 1.7.0 RC1
  2. Followed again the setup steps for Keychain Sharing:
    1. Choose your target project
    2. Select Capabilities
    3. Enable Keychain Sharing

It solved my case

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 a pull request may close this issue.

5 participants