-
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
Module file was created by an older version of the compiler; rebuild 'RealmSwift' and try again #2761
Comments
Which version of CocoaPods do you use? |
I'm using CocoaPods v0.39.0. I'll run your command ( |
Did you tried to clean DerivedData after that change once again? |
I've made some changes in the project. RealmSwift for watchOS was imported manually, and for others targets it was imported by Cocoapods. Now RealmSwift is imported by Cocoapods for all the targets. After doing this, I'm getting a different error for Realm framework when I'm archiving (but not when building): LLVM ERROR: Symbol name entry points before beginning or past end of file.
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil failed with exit code 1 |
That's a new one. Never saw that before. Could you try resetting the CocoaPods cache by |
I reseted the CocoaPods cache and now I'm getting this error messages: CreateUniversalBinary /Users/jgonfer/Library/Developer/Xcode/DerivedData/B2B-dknnmkplfuhntmbjfxavlmufuiif/Build/Intermediates/ArchiveIntermediates/B2B/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Realm.framework/Realm normal armv7\ arm64
cd "/Users/jgonfer/Documents/iOS Projects/B2B/Pods"
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo -create /Users/jgonfer/Library/Developer/Xcode/DerivedData/B2B-dknnmkplfuhntmbjfxavlmufuiif/Build/Intermediates/ArchiveIntermediates/B2B/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Pods-B2B\ Free-Realm.build/Objects-normal/armv7/Realm /Users/jgonfer/Library/Developer/Xcode/DerivedData/B2B-dknnmkplfuhntmbjfxavlmufuiif/Build/Intermediates/ArchiveIntermediates/B2B/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Pods-B2B\ Free-Realm.build/Objects-normal/arm64/Realm -output /Users/jgonfer/Library/Developer/Xcode/DerivedData/B2B-dknnmkplfuhntmbjfxavlmufuiif/Build/Intermediates/ArchiveIntermediates/B2B/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Realm.framework/Realm
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't move temporary file: /Users/jgonfer/Library/Developer/Xcode/DerivedData/B2B-dknnmkplfuhntmbjfxavlmufuiif/Build/Intermediates/ArchiveIntermediates/B2B/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Realm.framework/Realm to file: /Users/jgonfer/Library/Developer/Xcode/DerivedData/B2B-dknnmkplfuhntmbjfxavlmufuiif/Build/Intermediates/ArchiveIntermediates/B2B/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Realm.framework/Realm.lipo (No such file or directory)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo emitted errors but did not return a nonzero exit code to indicate failure Could be this issue related to #3493 of CocoaPods? I'm not sure if I'll able to reproduce the project's issue because it's a "complex" project. I'll try it. |
Well, the root cause of the CocoaPods issue, you link to, should be solved through the target de-duplication. But in some scenarios, it isn't applicable, so it might still help to turn off Parallelized Builds. Can you test whether that has helped for you? Otherwise some more information about the complexities of your project would be useful, eg. your Podfile. |
Parallelized Builds turned off, but now I'm getting this: PhaseScriptExecution Embed\ Pods\ Frameworks /Users/jgonfer/Library/Developer/Xcode/DerivedData/B2B-dknnmkplfuhntmbjfxavlmufuiif/Build/Intermediates/B2B.build/Debug-iphoneos/B2B.build/Script-66BE071508E4BCA949337419.sh
cd "/Users/jgonfer/Documents/iOS Projects/B2B"
/bin/sh -c /Users/jgonfer/Library/Developer/Xcode/DerivedData/B2B-dknnmkplfuhntmbjfxavlmufuiif/Build/Intermediates/B2B.build/Debug-iphoneos/B2B.build/Script-66BE071508E4BCA949337419.sh
/Users/jgonfer/Library/Developer/Xcode/DerivedData/B2B-dknnmkplfuhntmbjfxavlmufuiif/Build/Intermediates/B2B.build/Debug-iphoneos/B2B.build/Script-66BE071508E4BCA949337419.sh: line 2: /Users/jgonfer/Documents/iOS Projects/B2B/Pods/Target Support Files/Pods/Pods-frameworks.sh: No such file or directory I understand that this is more an issue related to CocoaPods than to Realm , isn't it? |
@mrackwitz could this be due to the CocoaPods script bug you mentioned in another issue about not supporting paths with spaces? This project is in a path containing |
@jpsim: This could be indeed the case. Thanks for taking a second look, I was a bit stumped here. But took a second look now and tried to reproduce it, but no luck with that. @jgonfer: Did you checked manually whether the referenced file exists? If not, something must be really went wrong with your CocoaPods integration. Could you in that case report the output of |
As we didn't got any further info on that, I'll assume that it is resolved and close this issue. If that wasn't the case, please feel free to re-open it. Otherwise it'd be also helpful for us to get to know how you could resolve the issue. |
This problem is tripping me up still.
There are no spaces in my path, here's the output of
I've created the repo/project/workspace here to try to help demonstrate the issue: https://github.com/thegreatmichael/BreakRealm unfortunately I also have a different issue in that one:
I think I fixed this with |
You probably need to delete ~/Library/Developer/Xcode/DerivedData to clear out your old build products. |
I landed here while facing the same issue many years later, so I'll add our solution as it may help anyone else. |
When I build the project, I'm getting this error:
I've installed 'RealmSwift' 0.96.2 via CocoaPods, and I'm using Xcode 7.1 (7B91b). I've deleted all content in DerivedData, and cleaned up the project, but I'm still getting this error when I build the project.
The text was updated successfully, but these errors were encountered: