-
Notifications
You must be signed in to change notification settings - Fork 760
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
XCode build fails: Redefinition of enumerator 'SYNTAX_ERR #315
Comments
ping @brodybits |
Linking to storesafe/cordova-sqlite-storage#868, which is marked as a bug. I would like to resolve this problem on the cordova-sqlite-storage side. (I will probably need a few weeks to look into this one.) The SYNTAX_ERR enumerator seems to have been defined on both plugins for several years. So I find it pretty strange that this problem would suddenly appear after multiple years. I wonder if it has anything to do with an Xcode update or any other framework updates? |
cordova-plugin-file/src/ios/CDVFile.h Lines 26 to 40 in 5e12b5e
I don't even know why this is clashing with yours... |
I solved it by simply removing and adding the plugin again. Some plugins, e.g. file-transfer and zip, will cause this problem. After installing those plugins, removing file plugin with |
Bug Report
XCode build fails: Redefinition of enumerator 'SYNTAX_ERR
Problem
The error started to appear when I added the below cordova plugins to the project where cordova-sqlite-storage plugin already existed:
What is expected to happen?
Build should not break.
What does actually happen?
Xcode build fails
Information
The cordova-sqlite-storage plugin has WebSQLError enum with SYNTAX_ERR = 5 and cordova-plugin-file plugin has CDVFileError enum with SYNTAX_ERR = 8. It seems to be the problem with the same name for these enums.
Command or Code
N/A
Environment, Platform, Device
See ionic info output
Version information
See above
Checklist
The text was updated successfully, but these errors were encountered: