# iOS Objective-C Auth0 Login Implementation

**URL:** <https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [November 28, 2019, 4:40pm UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401 "2019-11-28T16:40:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![subscription](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/subscription/32/13774_2.png) [@subscription](https://community.auth0.com/u/subscription)\
**Post date:** [November 28, 2019, 4:40pm UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/1 "2019-11-28T16:40:20Z")

</div>

Hi,

i am iOS Developer, working on Objective-C Language,

i have been working on iOS App, this XCode Project contain 5 Targets, i’m trying to installing Auth0 Login API to one of Target into my iOS application but there are several issues appearing i.e “No such module ‘Auth0’” . how to resolve it.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 29, 2019, 8:18am UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/3 "2019-11-29T08:18:44Z")

</div>

Hey there @subscription!

There’s definitely something wrong going with your setup but let me help you!

- Firstly we don’t have a Login API as you mentioned

I would like you to provide me with more context for example:

- What tutorial / quickstart / docs you use (link)?
- What SDK you want to implement ?

Let’s start with that! Thank you!

---

<div class="post-metadata">

**Author:** ![subscription](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/subscription/32/13774_2.png) [@subscription](https://community.auth0.com/u/subscription)\
**Post date:** [December 1, 2019, 4:38am UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/4 "2019-12-01T04:38:00Z")

</div>

i’m using WEB Login, Installing into my iOS app by using Cocoa Pods but

1. After Integrate Auth0 into our app then onwards app running slowly , It is taking 2 to 3 mins time to to run & see the output every time in my system , before installation it was taken 5 to 8 seconds time.

i have used “HybridAuth.swift” to get Web Login but getting compile error: “Auth0 Framework not found”.

how can i fix this compile error ?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 2, 2019, 10:00am UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/5 "2019-12-02T10:00:07Z")

</div>

Can you share here any link url you use to implement? We don’t have any SDK that is called Web Login that’s why I’m keeping asking you questions. Any screenshot would be also useful. Thank you!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 4, 2019, 5:49pm UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/6 "2019-12-04T17:49:15Z")

</div>

Hey there!

Have you had a chance to see my previous reply?

---

<div class="post-metadata">

**Author:** ![subscription](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/subscription/32/13774_2.png) [@subscription](https://community.auth0.com/u/subscription)\
**Post date:** [December 5, 2019, 4:35am UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/7 "2019-12-05T04:35:17Z")

</div>

> **[Auth0 iOS / macOS SDK Quickstarts: Login](https://auth0.com/docs/quickstart/native/ios-swift)**
>
> This guide demonstrates how to integrate Auth0 with any new or existing iOS / macOS application using the Auth0.swift SDK.

Hi  
i’m using XCode: 11.0 & iOS 12+.

1. By using above link i have downloaded Objective-C Code

2. I have added my Domain ID & Client ID and run the app , it is working as expected (it is returning token ) in your sample code.

3. by using that token calling “userinfo” web services then it is returning all user details correctly in your sample code.

4. After integrate same code into my Project by using CocoaPods , there is no issues , integrated successfully

5. i’m using webLogin (it is taking iOS Safari browser to return “Login Page”)

6. i set Callback & Logout url as:

PRODUCT\_BUNDLE\_IDENTIFIER}://YOUR\_DOMAIN/ios/{PRODUCT\_BUNDLE\_IDENTIFIER}/callback

1. by using “HybridAuth.swift” i’m calling below code into my Project (Objective-C )

```auto
 HybridAuth *auth = [[HybridAuth alloc] init];
[auth showLoginWithScope:@"openid profile"
                          connection:nil callback:^(NSError * _Nullable error,
                                                    A0Credentials * _Nullable credentials)
             {
                              dispatch_async(dispatch_get_main_queue(), ^{
                                  if (error)
                                  {
                                      //NSLog(@"Error: %@", error);
                                  }
                                  else if (credentials)
                                  {
                                      [self showAlertWithMessage:[NSString stringWithFormat:@"Success, Access Token: %@", [credentials accessToken]]];
                                  }
                              });
                          }]

```

1. in Auth0 Web Login Page, After enter username & password - Click on login button then appearing one issue is: “SAFARI CAN NOT OPEN THE PAGE BECAUSE THE ADDRESS IS INVALID“ (it is working in your code, why not working in my project ?)

2. Some time before loading the Login page then also showing “SAFARI CAN NOT OPEN THE PAGE BECAUSE THE ADDRESS IS INVALID“ .

---

<div class="post-metadata">

**Author:** ![subscription](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/subscription/32/13774_2.png) [@subscription](https://community.auth0.com/u/subscription)\
**Post date:** [December 5, 2019, 4:37am UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/8 "2019-12-05T04:37:40Z")

</div>

Could you please suggest me how to resolve this issue in my code.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 5, 2019, 2:53pm UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/9 "2019-12-05T14:53:26Z")

</div>

Yep sure! Let me troubleshoot that, try to reproduce and get back to you shortly! Thanks a lot for providing all those details.

---

<div class="post-metadata">

**Author:** ![subscription](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/subscription/32/13774_2.png) [@subscription](https://community.auth0.com/u/subscription)\
**Post date:** [December 6, 2019, 4:19am UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/10 "2019-12-06T04:19:38Z")

</div>

I have used: pod ‘Auth0’, ‘~\> 1.19’ . version to install into my project by CocoaPods.  
Could you please tell how to fix this issue in my project because i got stuck with this issue.

---

<div class="post-metadata">

**Author:** ![subscription](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/subscription/32/13774_2.png) [@subscription](https://community.auth0.com/u/subscription)\
**Post date:** [December 6, 2019, 9:01am UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/11 "2019-12-06T09:01:56Z")

</div>

![01](https://global.discourse-cdn.com/auth0/original/3X/8/4/8408421565a6bc6ed75c75a4075aa415f44eac23.png)

---

<div class="post-metadata">

**Author:** ![sraghupati](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sraghupati/32/14248_2.png) [@sraghupati](https://community.auth0.com/u/sraghupati)\
**Post date:** [January 16, 2020, 9:30am UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/12 "2020-01-16T09:30:42Z")

</div>

Hello! @konrad.sopala and @subscription

Was this ever resolved? I still have the same problem. I’ve also noticed that the objective C quickstart seems to have vanished from the mobile apps quickstarts page. Why is this?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 20, 2020, 9:10am UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/13 "2020-03-20T09:10:38Z")

</div>

Hey there!

Sorry for the delay in response. I kind of wasn’t able to provide you with any guidance as the team was in the middle of making SDKs related decisions and as a result of that one of the repos they deprecated was the Objective-C quickstart repo. As this repo is not longer advised to be used we’re not providing any guidance for it and instead encouraging to use the Swift repo here:

[https://github.com/auth0-samples/auth0-ios-swift-sample/tree/master/00-Login](https://github.com/auth0-samples/auth0-ios-swift-sample/tree/master/00-Login)

Sorry for any inconvenience!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 20, 2020, 9:10am UTC](https://community.auth0.com/t/ios-objective-c-auth0-login-implementation/34401/14 "2020-03-20T09:10:41Z")

</div>


