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

[eas build] fastlane error: cannot find 'SPAlertView' in scope #2090

Closed
ferdy-roz opened this issue Oct 17, 2023 · 6 comments
Closed

[eas build] fastlane error: cannot find 'SPAlertView' in scope #2090

ferdy-roz opened this issue Oct 17, 2023 · 6 comments
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@ferdy-roz
Copy link

Build/Submit details page URL

https://expo.dev/accounts/tendrel/projects/tendrel-worker/builds/6a13b184-2f46-4f08-8d7e-cfc721581de6

Summary

eas build suddenly started failing, even when run against commits that we have previously successfully built

Managed or bare?

Managed

Environment

❯ pnpx expo-env-info                                                                   9:43:11
Packages: +2
++
Progress: resolved 2, reused 1, downloaded 1, added 2, done

  expo-env-info 1.0.5 environment info:
    System:
      OS: macOS 13.2
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v18.16.0/bin/yarn
      npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
      Watchman: 2023.08.28.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.11.2 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    IDEs:
      Android Studio: 2022.2 AI-222.4459.24.2221.9971841
      Xcode: 14.2/14C18 - /usr/bin/xcodebuild
    Expo Workflow: managed

❯ pnpx expo-doctor                                                                     9:43:29
Packages: +1
+
Progress: resolved 1, reused 1, downloaded 0, added 1, done
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK

Didn't find any issues with the project!

Error output

❌  (../../node_modules/burnt/ios/BurntModule.swift:13:64)

  11 |   case custom
  12 |   
> 13 |   func toSPAlertIconPreset(_ options: AlertOptions?) throws -> SPAlertIconPreset {
     |                                                                ^ cannot find type 'SPAlertIconPreset' in scope
  14 |     switch self {
  15 |       case .done:
  16 |         return .done


❌  (../../node_modules/burnt/ios/BurntModule.swift:39:29)

  37 |   case none
  38 |   
> 39 |   func toSPAlertHaptic() -> SPAlertHaptic {
     |                             ^ cannot find type 'SPAlertHaptic' in scope
  40 |     switch self {
  41 |       case .success:
  42 |         return .success


❌  (../../node_modules/burnt/ios/BurntModule.swift:245:18)

  243 |       }
  244 |       
> 245 |       let view = SPAlertView(
      |                  ^ cannot find 'SPAlertView' in scope
  246 |         title: options.title,
  247 |         message: options.message,
  248 |         preset: preset ?? .done)

› Compiling expo-camera Pods/EXCamera » EXCameraMicrophonePermissionRequester.m

› Compiling expo-camera Pods/EXCamera » EXCameraCameraPermissionRequester.m

› Compiling expo-camera Pods/EXCamera » EXCamera.m

› Compiling expo-camera Pods/EXCamera » EXCamera-dummy.m

    Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Tendrel' from project 'Tendrel')

    Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Tendrel' from project 'Tendrel')

    Run script build phase '[CP-User] Generate app.manifest for expo-updates' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXUpdates' from project 'Pods')

▸ ** ARCHIVE FAILED **

▸ The following build commands failed:

▸ 	SwiftCompile normal arm64 Compiling\ BurntModule.swift /Users/expo/workingdir/build/node_modules/burnt/ios/BurntModule.swift (in target 'Burnt' from project 'Pods')

▸ 	SwiftCompile normal arm64 /Users/expo/workingdir/build/node_modules/burnt/ios/BurntModule.swift (in target 'Burnt' from project 'Pods')

▸ (2 failures)

2023-10-16 21:17:16.190 xcodebuild[5139:16124] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)

** ARCHIVE FAILED **

Reproducible demo or steps to reproduce from a blank project

Not sure how to do that here

@ferdy-roz ferdy-roz added the needs review Issue is ready to be reviewed by a maintainer label Oct 17, 2023
@jyaconelli
Copy link

I am running into this issue as well. Same error. Have tried building in the following ways:

  • on eas with iPhoneOS16.4.sdk
  • on eas with iPhoneOS17sdk
    Project is using Expo 48.0

@jyaconelli
Copy link

Okay just fixed it! Was using tamagui starter, and needed to run npx expo install burnt and set deploymentTarget: 13.0 using expo-build-properties for ios
Hindsight, I think there was a comment about local toasts (which burnt is a package for) requiring you to install local module or it'll break native

@ferdy-roz
Copy link
Author

THANK YOU! Updating burnt to 0.12.1 worked for me (didn't have to set the deploymentTarget

@maitriyogin
Copy link

hmm I get the same, even after upgrading to burnt 0.12.1 and using deploymentTarget:13.0 ...

@techjandro
Copy link

techjandro commented Nov 4, 2023

@ps-george
Copy link

@maitriyogin npx expo install burnt fixed it for me (without deploymentTarget)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

5 participants