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

Couldn't get required object pointer #270

Open
timshe opened this issue Apr 20, 2021 · 0 comments
Open

Couldn't get required object pointer #270

timshe opened this issue Apr 20, 2021 · 0 comments

Comments

@timshe
Copy link

timshe commented Apr 20, 2021

I used SwagGen to generate my Client API and I have spent two days on this error:

Printing description of self.behaviours:
expression produced error: warning: couldn't get required object pointer (substituting NULL): Couldn't load 'self' because its value couldn't be evaluated

error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x10).
The process has been returned to the state before expression evaluation.
(lldb)

The error happens here:

// create composite behaviour to make it easy to call functions on array of behaviours
let requestBehaviour = RequestBehaviourGroup(request: request, behaviours: self.behaviours + behaviours)

I stepped through the code several times: the URL is well formed,I updated the APIClient.swift (attached) from a verified version (Fix a potential crash when constructing a URLRequest (#268))

Swaggen Version: 4.4.0
Xcode Version 12.4 (12D4e)
s.dependency 'Alamofire', '~> 4.9.0'
s.source = { :git => '[email protected]:https://github.com/yonaskolb/SwagGen.git'

Any pointer to a solution would be appreciated

APIClient.txt

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

No branches or pull requests

1 participant