# Adding Auth0 to an existing Objective-C project. (xcode9/iOS11)

**URL:** <https://community.auth0.com/t/adding-auth0-to-an-existing-objective-c-project-xcode9-ios11/8346>\
**Category:** Get Help\
**Tags:** migration, error, xcode, objective-c\
**Created:** [September 29, 2017, 2:40pm UTC](https://community.auth0.com/t/adding-auth0-to-an-existing-objective-c-project-xcode9-ios11/8346 "2017-09-29T14:40:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bozso.gergely](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bozso.gergely](https://community.auth0.com/u/bozso.gergely)\
**Post date:** [September 29, 2017, 2:40pm UTC](https://community.auth0.com/t/adding-auth0-to-an-existing-objective-c-project-xcode9-ios11/8346/1 "2017-09-29T14:40:27Z")

</div>

![alt text][1]

(im using the latest cocoapods,xcode,sdk)

When I try it with xcode 8.x, as this message suggest, after the migration I got compile errors in \_ObjectiveManagementAPI.swift like this:  
init method: “Cannot invoke ‘users’ with an argument list of type ‘(token: String)’”.

(xcode 8.3.3,sdk 10.3,pod 1.0.1, auth0 1.8.0, simplekeych 0.8.0)

I know i do it wrong somehow, but cant figure it out.. 😕 Thanks for any advise!  
G.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [September 29, 2017, 4:45pm UTC](https://community.auth0.com/t/adding-auth0-to-an-existing-objective-c-project-xcode9-ios11/8346/2 "2017-09-29T16:45:55Z")

</div>

Long shot, but you mention the use of latest cocoapods, but then you state that `pod` version is `1.0.1`. I just ran `pod --version` on an up to date install and it declares version `1.3.1` as latest. You may want to update to see if it can be related.

---

<div class="post-metadata">

**Author:** ![bozso.gergely](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bozso.gergely](https://community.auth0.com/u/bozso.gergely)\
**Post date:** [September 29, 2017, 6:32pm UTC](https://community.auth0.com/t/adding-auth0-to-an-existing-objective-c-project-xcode9-ios11/8346/3 "2017-09-29T18:32:00Z")

</div>

Thank you so much!  
That did the trick on the older machine. So xcode 8 could merged it to swift3.  
Now the project can be opened by xcode 9 on the other machine with the latest software tools installed.  
My english is knowledge is not enough to tell you how thankfull I am right now 🙂  
Thanks agan @jmangelo !

The real issue is here, when you have to use Auth0 without XCode 8. The cocoapod is swift 2 and in xcode 9 is no option to upgrade it to swift3 or swift4…  
(When will apple stop playing around with the syntax?!)

---

<div class="post-metadata">

**Author:** ![bozso.gergely](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bozso.gergely](https://community.auth0.com/u/bozso.gergely)\
**Post date:** [September 29, 2017, 6:32pm UTC](https://community.auth0.com/t/adding-auth0-to-an-existing-objective-c-project-xcode9-ios11/8346/4 "2017-09-29T18:32:00Z")

</div>

Thank you so much!  
That did the trick on the older machine. So xcode 8 could merged it to swift3.  
Now the project can be opened by xcode 9 on the other machine with the latest software tools installed.  
My english is knowledge is not enough to tell you how thankfull I am right now 🙂  
Thanks agan @jmangelo !

The real issue is here, when you have to use Auth0 without XCode 8. The cocoapod is swift 2 and in xcode 9 is no option to upgrade it to swift3 or swift4…  
(When will apple stop playing around with the syntax?!)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/adding-auth0-to-an-existing-objective-c-project-xcode9-ios11/8346/5 "2018-03-02T05:56:45Z")

</div>


