# New Xcode build error with Auth0

**URL:** <https://community.auth0.com/t/new-xcode-build-error-with-auth0/109265>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-swift, application\
**Created:** [June 14, 2023, 9:36pm UTC](https://community.auth0.com/t/new-xcode-build-error-with-auth0/109265 "2023-06-14T21:36:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![isaac](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/isaac/32/34080_2.png) [@isaac](https://community.auth0.com/u/isaac)\
**Post date:** [June 14, 2023, 9:36pm UTC](https://community.auth0.com/t/new-xcode-build-error-with-auth0/109265/1 "2023-06-14T21:36:43Z")

</div>

Need a new release of auth0-swift. The underlying SimpleKeychain and JWTDecode packages now require macOS 11 or greater build target, but the current auth0-swift release requires 10.15, so will no longer build.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 14, 2023, 11:57pm UTC](https://community.auth0.com/t/new-xcode-build-error-with-auth0/109265/2 "2023-06-14T23:57:58Z")

</div>

Hey @isaac welcome back.! Thanks for brining this up in the community, as I’m sure others will be running into this issue as well. It looks like there was already an issue filed against the SDK itself, so I’d recommend adding to and/or following along there:

> <https://github.com/auth0/Auth0.swift/issues/776>
>
> \### Checklist
> 
> \- \[X\] I have looked into the \[Readme\](https://github.com/auth0/Au…th0.swift#readme), \[Examples\](https://github.com/auth0/Auth0.swift/blob/master/EXAMPLES.md), and \[FAQ\](https://github.com/auth0/Auth0.swift/blob/master/FAQ.md) and have not found a suitable solution or answer.
> \- \[X\] I have looked into the \[API documentation\](https://auth0.github.io/Auth0.swift/documentation/auth0) and have not found a suitable solution or answer.
> \- \[X\] I have searched the \[issues\](https://github.com/auth0/Auth0.swift/issues) and have not found a suitable solution or answer.
> \- \[X\] I have searched the \[Auth0 Community\](https://community.auth0.com) forums and have not found a suitable solution or answer.
> \- \[X\] I agree to the terms within the \[Auth0 Code of Conduct\](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
> 
> \### Describe the problem you'd like to have solved
> 
> Hi, our CI tool started to report these error.
> It seems these dependencies and Auth0 have been updated Package.swift to drop iOS12 support.
> But Auth0 has not been bumped version so SimpleKeychain and JWTDecode fetches latest codes but Auth0 isn't.
> 
> ❌ error: The package product 'SimpleKeychain' requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0 (in target 'Auth0' from project 'Auth0')
> ❌ error: The package product 'JWTDecode' requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0 (in target 'Auth0' from project 'Auth0')
> 
> 
> \### Describe the ideal solution
> 
> bump Auth0 version so that SPM aware of latest changes
> 
> \### Alternatives and current workarounds
> 
> \_No response\_
> 
> \### Additional context
> 
> \_No response\_

---

<div class="post-metadata">

**Author:** ![tom21](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@tom21](https://community.auth0.com/u/tom21)\
**Post date:** [June 15, 2023, 7:55am UTC](https://community.auth0.com/t/new-xcode-build-error-with-auth0/109265/4 "2023-06-15T07:55:46Z")

</div>

Just to say this is a major breaking change for me too. It leads the expo code pipeline to fail:

```auto
**BUILD FAILED**

```

1101

```auto
▸ The following build commands failed:

```

1102

```auto
▸ SwiftEmitModule normal x86_64 Emitting\ module\ for\ Auth0 (in target 'Auth0' from project 'Pods')

```

1103

```auto
▸ (1 failure)

```

1104

```auto
› Compiling react-native-auth0 Pods/Auth0 » CredentialsStorage.swift

```

1105

```auto
› Compiling react-native-auth0 Pods/Auth0 » Handlers.swift

```

I’m a few minutes away from trying to find an alternative solution to Auth0. But I really don’t want to.

---

<div class="post-metadata">

**Author:** ![tom21](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@tom21](https://community.auth0.com/u/tom21)\
**Post date:** [June 15, 2023, 2:25pm UTC](https://community.auth0.com/t/new-xcode-build-error-with-auth0/109265/5 "2023-06-15T14:25:53Z")

</div>

I am continuing to have issues with automated delivery pipelines in Expo despite the release of Auth0 Swift.

---

<div class="post-metadata">

**Author:** ![tom21](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@tom21](https://community.auth0.com/u/tom21)\
**Post date:** [June 15, 2023, 2:32pm UTC](https://community.auth0.com/t/new-xcode-build-error-with-auth0/109265/6 "2023-06-15T14:32:03Z")

</div>

This is the specific error:

❌ (node\_modules/react-native-auth0/ios/CredentialsManagerBridge.swift:8:8)

6 | //  
7 |

> 8 | import Auth0  
> | ^ compiling for iOS 12.0, but module ‘Auth0’ has a minimum deployment target of iOS 13.0: /Users/expo/Library/Developer/Xcode/DerivedData/xxxxx-xx/Build/Intermediates.noindex/ArchiveIntermediates/xxxx/BuildProductsPath/Release-iphoneos/Auth0/Auth0.swiftmodule/arm64-apple-ios.swiftmodule  
> 9 | import Foundation  
> 10 | import LocalAuthentication  
> 11 |

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 15, 2023, 6:45pm UTC](https://community.auth0.com/t/new-xcode-build-error-with-auth0/109265/7 "2023-06-15T18:45:19Z")

</div>

This is resolved by updating to the latest release of [Auth0.swift](https://github.com/auth0/Auth0.swift) (`2.4.0`). Please note that this will require updating cross-platform libraries as well - In the case of [react-native-auth0](https://github.com/auth0/react-native-auth0) the version containing the bump to the latest version of Auth0.swift and subsequently the fix is 2.17.4.

Apologize for the inconvenience, and cheers!

---

<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:** [June 29, 2023, 6:45pm UTC](https://community.auth0.com/t/new-xcode-build-error-with-auth0/109265/8 "2023-06-29T18:45:26Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
