okta-react-native
okta-react-native copied to clipboard
[iOS] Build error
Describe the bug?
Encountering a build error with Xcode 16.3 and iOS 18.4
/Users/expo/workingdir/build/node_modules/@okta/okta-react-native/ios/OktaSdkBridge/OktaSdkBridge.swift:33:1: error: type 'OktaOidc' does not conform to protocol 'OktaOidcProtocol'
extension OktaOidc: OktaOidcProtocol {
^
/Users/expo/workingdir/build/node_modules/@okta/okta-react-native/ios/OktaSdkBridge/OktaSdkBridge.swift:21:10: note: protocol requires function 'signInWithBrowser(from:additionalParameters:callback:)' with type '(UIViewController, [String : String], @escaping ((OktaOidcStateManager?, (any Error)?) -> Void)) -> ()'; add a stub for conformance
func signInWithBrowser(from presenter: UIViewController,
^
/Users/expo/workingdir/build/node_modules/@okta/okta-react-native/ios/OktaSdkBridge/OktaSdkBridge.swift:25:10: note: protocol requires function 'signOutOfOkta(_:from:callback:)' with type '(OktaOidcStateManager, UIViewController, @escaping (((any Error)?) -> Void)) -> ()'; add a stub for conformance
func signOutOfOkta(_ authStateManager: OktaOidcStateManager,
^
/Users/expo/workingdir/build/node_modules/@okta/okta-react-native/ios/OktaSdkBridge/OktaSdkBridge.swift:266:26: warning: 'clear()' is deprecated: This method deletes all keychain items accessible to an application. Use `removeFromSecureStorage` to remove Okta items.
stateManager.clear()
^
What is expected to happen?
Successful build
What is the actual behavior?
Error, unable to build, can't update apps
Reproduction Steps?
Attempt to build using Release configuration, it works as expected using a local dev build. I am using expo 52.0.42 and okta-react-native 2.17.0
Additional Information?
No response
SDK Version
18.4
Build Information
Xcode 16.3 locally and also fails on expo.dev with the builder:
Creating new worker instance
M4 Pro, 10 cores, 40 GB RAM
Using VM template "macos-sequoia-15.3-xcode-16.2" running macOS Sequoia 15.3
Installed software:
- Xcode 16.2 (16C5032a)
- Node.js 20.18.3
- Bun 1.2.4
- Yarn 1.22.22
- pnpm 9.15.5
- npm 9.8.1
- fastlane 2.226.0
- CocoaPods 1.16.2
- Ruby 3.2
- node-gyp 11.1.0
Resolved builder image to 'sdk-52'.