-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
build error: Ns_error_domain attribute only valid on enum/struct/union/class #4164
Comments
Can you please share the exact version of Xcode that you're using? You can find it in the About Xcode window (Xcode -> About Xcode). Mine is Version 8.0 (8A218a), for instance. |
Version 8.0 (8A218a). The same as yours :) |
Hmm. I think you'll need to share more information about what you're doing when you see the error. Do you see the error if you do the following:
Or does it only appear when compiling your project when it brings in a Realm header file? |
Issue is present for me as well, with a Cocoapods installation, on current Master branch (2.0.1), on latest XCode 8. I have the same error, line 100 of RLMConstants.h and line 30 of RLMSyncUtil.h. Realm for ObjC |
Are you seeing the error when building Realm, or when building something that uses Realm? |
Building an .xcworkspace with Realm as a Cocoapods dependency. 'Building appname: Realm' appears and seems to happen successfully in the XCode status bar ; the compiler error shows at the very end of the build process |
Can you please share a copy of the full build log that shows the failure? It's possible there are particular compiler flags or similar that are triggering this issue as we're not able to reproduce this in any of our demo projects. If you'd rather not share the build log publicly, please feel free to email it to help@realm.io. |
Sent |
Thanks. Which version of Realm were you previously using that was building successfully? |
Never seen the error before 2.0.0, appears in both 2.0.0 and 2.0.1 |
Were you on v1.1.0 prior to attempting to update to v2.0.0? |
Yes, but we are still amidst the Swift3 conversion process and haven't had a completed build on XCode8 (due to some of our forked dependencies having diverged significantly from their latest Swift3 impl), so I'm not certain and don't want to give you any false info =p. bacfaa4 is the last RLM commit ref in Podfile on our pre-Swift3 branch. |
That being said, the error only started appearing today upon moving to 2.0.0, and moments later 2.0.1 |
I've managed to reproduce this. It appears to be specific to building Objective-C++ files with the C++98 language setting, as CoreFoundation defines |
Fantastic - For now I'll adjust that in my project. Thanks a million, I'll keep an eye on this Issue as well |
Realm version: 2.0.0
Xcode version: 8.0
iOS/OSX version: Deploy Target at iOS 8
I installed realm with Static Framework to my project. When I try to build the entire project, i've got these compile-time errors:
RLMConstants.h:100:1: Ns_error_domain attribute only valid on enum/struct/union/class RLMSyncUtil.h:30:1: Ns_error_domain attribute only valid on enum/struct/union/class
I tried using Cocoapods, but these error still occurs.
Is there anything I mis-configured for the Xcode?
Thanks!
The text was updated successfully, but these errors were encountered: