Giter Site home page Giter Site logo

Comments (18)

hiroingk avatar hiroingk commented on May 15, 2024 2

Sorry, error message is here.

❌  (../../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)

from alertkit.

anirudhsama avatar anirudhsama commented on May 15, 2024 2

The Burnt library wasn't pinned to 4.2 and started breaking due to the 5.0 changes. There is now a new version which pins the version so 4.2, so its fixed. nandorojo/burnt#27

from alertkit.

id0Sch avatar id0Sch commented on May 15, 2024 1

Hi, I'm having the same issue - however, I actually am using burnt, so I can't just delete it.
would appreciate your help 💪🏻
Thanks!

from alertkit.

nahn20 avatar nahn20 commented on May 15, 2024 1

We are experiencing the same issue, with the same timing.

@nahn20 Hey! Did you just end up removing the entire burnt dep?

Yep, not as a long-term fix, but more so to demonstrate that it was causing the issues (and so that I could continue with dev builds).

from alertkit.

thecynicalpaul avatar thecynicalpaul commented on May 15, 2024 1

If anyone wants a quick fix for this, building locally using the --local flag with EAS Build works for me.

Another note: on my machine I'm on macOS Sonoma with Xcode 15.0.

I don't know much about native iOS development so I'm not sure if it's my Xcode version or the --local flag that is allowing me to build properly, but I hope this helps someone.

Yeah, that only works because you have the previous version of SPAlert(AlertKit) cached. (check your machine's ~/Library/Caches/CocoaPods/Pods/Release. If you clear that, you'll get the fresh broken version.

I am not sure if that would work, but we could maybe do a patch package of Burnt (if you are using yarn or pnpm), to change its podfile's s.dependecy to include the previous version.

from alertkit.

jordam1407 avatar jordam1407 commented on May 15, 2024 1

Same error here using Tamagui Toast that has Burnt as dependency....
Any quickfix for this?

  (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)```

from alertkit.

ivanvorobei avatar ivanvorobei commented on May 15, 2024 1

@anirudhsama you can propose them upgrade to 5x version. Of course 4x and 5x has changes in API lol, its major changes.

from alertkit.

thecynicalpaul avatar thecynicalpaul commented on May 15, 2024

We are experiencing the same issue, with the same timing.

@nahn20 Hey! Did you just end up removing the entire burnt dep?

from alertkit.

Armster15 avatar Armster15 commented on May 15, 2024

If anyone wants a quick fix for this, building locally using the --local flag with EAS Build works for me.

Another note: on my machine I'm on macOS Sonoma with Xcode 15.0.

I don't know much about native iOS development so I'm not sure if it's my Xcode version or the --local flag that is allowing me to build properly, but I hope this helps someone.

from alertkit.

id0Sch avatar id0Sch commented on May 15, 2024

Patching it to 4.2.0 has done the trick for me - I think the previous version (5.0.1) wasn't published since I couldn't install it.

diff --git a/node_modules/burnt/ios/Burnt.podspec b/node_modules/burnt/ios/Burnt.podspec
index 678869f..21a93c3 100644
--- a/node_modules/burnt/ios/Burnt.podspec
+++ b/node_modules/burnt/ios/Burnt.podspec
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
   s.source         = { git: 'https://github.com/nandorojo/burnt' }
   s.static_framework = true
   s.dependency 'SPIndicator'
-  s.dependency 'SPAlert'
+  s.dependency 'SPAlert', '4.2.0'
 
   s.dependency 'ExpoModulesCore'

from alertkit.

ivanvorobei avatar ivanvorobei commented on May 15, 2024

Hello here!
Sorry I am long away of React Native but if you need any help or I can fix some I ready to do it. let me know please

from alertkit.

ivanvorobei avatar ivanvorobei commented on May 15, 2024

I made release 5.1.2 with fix, maybe it help. Can somebody try?

from alertkit.

hiroingk avatar hiroingk commented on May 15, 2024

Thanks @ivanvorobei
I tried 5.1.2 with burnt and it did not work.
It worked with 4.2.0.

from alertkit.

anirudhsama avatar anirudhsama commented on May 15, 2024

I'm also seeing this error, how ever the error seems to be in Burnt:

/Users/expo/workingdir/build/node_modules/burnt/ios/BurntModule.swift:13:64: error: cannot find type 'SPAlertIconPreset' in scope
  func toSPAlertIconPreset(_ options: AlertOptions?) throws -> SPAlertIconPreset {
                                                               ^~~~~~~~~~~~~~~~~
/Users/expo/workingdir/build/node_modules/burnt/ios/BurntModule.swift:39:29: error: cannot find type 'SPAlertHaptic' in scope
  func toSPAlertHaptic() -> SPAlertHaptic {
                            ^~~~~~~~~~~~~
/Users/expo/workingdir/build/node_modules/burnt/ios/BurntModule.swift:245:18: error: cannot find 'SPAlertView' in scope
      let view = SPAlertView(
                 ^~~~~~~~~~~

from alertkit.

ivanvorobei avatar ivanvorobei commented on May 15, 2024

@hiroingk can you check reason why it failed? maybe you have it

from alertkit.

ivanvorobei avatar ivanvorobei commented on May 15, 2024

@anirudhsama thanks

from alertkit.

ivanvorobei avatar ivanvorobei commented on May 15, 2024

I think reason its compatibility with visionOS + conditions.

from alertkit.

ivanvorobei avatar ivanvorobei commented on May 15, 2024

I think it's related to #if macros using now. I used it because added vision OS support. Maybe its not work well with react.

from alertkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.