Comments (18)
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.
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.
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.
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.
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.
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.
@anirudhsama you can propose them upgrade to 5x version. Of course 4x and 5x has changes in API lol, its major changes.
from alertkit.
We are experiencing the same issue, with the same timing.
@nahn20 Hey! Did you just end up removing the entire burnt
dep?
from alertkit.
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.
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.
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.
I made release 5.1.2 with fix, maybe it help. Can somebody try?
from alertkit.
Thanks @ivanvorobei
I tried 5.1.2 with burnt and it did not work.
It worked with 4.2.0.
from alertkit.
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.
@hiroingk can you check reason why it failed? maybe you have it
from alertkit.
@anirudhsama thanks
from alertkit.
I think reason its compatibility with visionOS + conditions.
from alertkit.
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)
- AlertView: change frame to all screen HOT 1
- Change size of alert HOT 4
- Xcode 13 beta 3: 'shared' is unavailable in application extensions for iOS HOT 3
- black background blur support HOT 1
- Is it possible that we can display things other than images inside the alert? HOT 3
- Set dismissByTap to false is not working HOT 1
- Color for icon in SwiftUI HOT 14
- Support for macOS? HOT 4
- Content color is not always correct for Dark Mode. HOT 1
- I made this for React Native! HOT 1
- Dark Theme HOT 2
- How to Dismiss this? HOT 2
- watchOS Support HOT 1
- OC
- Custom styles HOT 3
- Add completion
- The alerts are so cool! Does there any plan to support tvOS? I really need it! HOT 3
- N/A HOT 2
- Add abillity to control alert duration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alertkit.