-
Notifications
You must be signed in to change notification settings - Fork 28
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
Swift compiler errors #7
Comments
This is the first time I'm encountering this error 😅 Could you post what RN version you're using, your target iOS version, and your Xcode version? I'll try making a fresh project to reproduce. In the meantime, I'm gonna do some debugging... 😔 Edit: I'm trying out the example app, and everything seems to work just fine. I'm going to try it on a fresh RN project next.
|
I'm on: Clean build + Cleared derivedData. |
Hello, forgot to post this before I fell asleep last night 😴 I created a fresh RN project (the latest ver. is
Gonna try again with RN |
So maybe the problem is with Xcode
|
I finally was able to reproduce your error 😅 The github action failed to build the project with the following error: The next step is to figure out what went wrong 😅
Quote:
|
I've found the solution, but you aren't going to like it 😔
So the steps to fix this are the same as before:
But if you are using Xcode 11, you have to change the swift version that Xcode is using to at least:
I'm sorry I could't find a better solution, but this is something that is out of my abilities. The problem is with the version of Xcode you are using (and the fact that this library is using iOS 14 specific API's... Honestly, this library is a mess to install because of the problems regarding Xcode/Swift/Cocoapods. |
Thank you for your awesome work so far 😀 Your solution is a bit confusing to me because on another project it works using the same XCode version. Maybe I can specify in my project which version of Swift to use? (maybe the project uses an older swift version because I have another pod in it which also uses swift) UPDATE: I tried changing Swift Language Version to 5.0 like in my other project, but as you said I need at least 5.3 |
I'm sorry, this library is a mess haha 😔 (I'll take a look at this later, and do some more tests) At the mean time, what did you do, and what errors did you encounter? I don't mind if you just paste the entire error/logs + build settings haha (it'll help with debugging). I'll follow along step by step and I'll try to reproduce the errors 😅 This would be a lot easier it i could install Xcode 11 (but I only have 4GB's of space left 🤣) |
Nooo this library is really good. I described what I did in the comment above, I have not logs :/ |
Here's what I've found after some testing haha
I'm a noob at Xcode but I can't figure how to make this work... I'm afraid that I'll end up breaking something if i mess with the build settings haha It looks like the simplest solution is to just upgrade to In the meantime, I'm going to try and set the podspec for this library to: Edit: it didn't work haha Edit: I've come to the conclusion that certain iOS features and API's are tied to Xcode releases. If you want to use the newer API's, then you need to upgrade your version of Xcode. This means that it's okay to stay on older Xcode versions as long as you aren't using any of the newer API's. This is why version Unfortunately, since the later versions of this library are referencing iOS 14 specific API's (which are optional to use), you need to use the version of Xcode that was released alongside with iOS 14 (which is Xcode 12) to use this. So in summary, you just really need to upgrade your version of Xcode or stay on an older version of this library haha 😅 |
I get these strange errors after installing the package.
Does anyone know what the issue is? I could install it perfectly on another newer project.
Kind regards,
Frank
The text was updated successfully, but these errors were encountered: