magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

'MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h' file not found #1095

Closed ryanjm closed 4 years ago

ryanjm commented 8 years ago

I just updated my version of MagicalRecord, using the latest code off of the develop branch. I'm getting the following error:

In file included from /Users/ryanjm/code/iphone-app/Prefix.pch:41:
/Users/ryanjm/code/iphone-app/MagicalRecord/MagicalRecord.h:17:9: fatal error: 'MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h' file not found
#import <MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h>
        ^
1 error generated.
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

I see the file there but Xcode 7 isn't finding it. Any ideas what I can do to make sure it finds the file and links everything properly? Thanks!

ghost commented 8 years ago

Did you ever resolve this? I am having the same error.

ryanjm commented 8 years ago

Sorry @Collibhoy I don't remember what I did. Have you tried clearing derived data?

murthy8 commented 8 years ago

@Collibhoy i have a small doubt. i am importing magicalrecord sdk 2.3.3 in my xcode7 project.. means copy the magicalrecord items in my project. i am not using cocoapods.. i got one issue.. i.e. "MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h file not found in xcode7" how to solve the issue?? the issue is getting from "NSAttributeDescription+MagicalDataImport.h" file...

murthy8 commented 8 years ago

@ryanjm hi if u have any idea plz tell me

gunesmert commented 8 years ago

What cocoapods version are you guys using? I was using 0.39.0, and was not facing this issue. But when I upgraded cocoapods to version 1.0.0.beta.4, I started facing with this problem. And I downgraded it to 0.39.0 again.

murthy8 commented 8 years ago

@gunesmert i have small doubt.. i was integrating Magical Record sdk 2.3.2.. it is integrated successfully. but i have some errors. i.e. "mr_contextforcurrentthread deprecated in magicalrecord 3.0".. so how to fix this issue. plz guide me

gunesmert commented 8 years ago

@murthy8 cleaning DerivedData and re-building the application with Cocoapods version 1.0.0.beta.4 worked for me.

murthy8 commented 8 years ago

@gunesmert i got warning messages. nearly 300 plus warning messages like this "mr_contextforcurrentthread deprecated in magicalrecord 3.0"

gunesmert commented 8 years ago

I have no idea mate. I have no warnings. Why don't you try adding it via Cocoapods?

murthy8 commented 8 years ago

@gunesmert i am adding magical record through cocoapods

gunesmert commented 8 years ago

In what version?

murthy8 commented 8 years ago

@gunesmert cocoapods version number is: 0.39.0

gunesmert commented 8 years ago

Can you try upgrading to beta versions of Cocoapods?

$ [sudo] gem install cocoapods --pre

There are no problems with version 1.0.0.beta.4

murthy8 commented 8 years ago

@gunesmert last week i integrated Magical Record 2.3.2 beta version.. but i was tried to integrate Magical Record 2.3.3 latest version. but i got failure.. so finally i integrated Magical Record 2.3.2 beta sdk. but now i need to integrate Magical Record 2.3.3 sdk.. so will you please guide me how to integrate Magical Record 2.3.3 sdk without facing any issue... plz give me response.. it is on demand.. Thanks in advance...

murthy8 commented 8 years ago

@gunesmert last week i integrated Magical Record 2.3.2 beta version.. but i was tried to integrate Magical Record 2.3.3 latest version. but i got failure.. so finally i integrated Magical Record 2.3.2 beta sdk. but now i need to integrate Magical Record 2.3.3 sdk.. so will you please guide me how to integrate Magical Record 2.3.3 sdk without facing any issue... plz give me response.. it is on demand.. Thanks in advance... plz give me your guidance.. it is on demand to update.. Thank you.....

ryanjm commented 8 years ago

@murthy8 FYI: Your messages get sent to all participants in this issue (you can see the list on the right). Sending 4 exact messages ends up becoming spam in each of our inboxes. This is an open source project, the best you can expect is some direction in how to solve something. You'll need to explain what you've tried in order to get better help. Additionally, Stackoverflow is a good place to get direct help if you need that. These github issues are technically for bugs.

I haven't updated my version of MagicalRecord in awhile. I use my own branch and I add it directly to my project. You are free to try to use that branch, but know that it is out of date. It has been awhile since I've attempted to update MR using cocoapods as I've had issues with that in the past. Specifically I needed to overwrite some files to make the import code work.

I have recently created my own library for the imports so I might be attempting to update to a newer version of MR soon, but that probably won't be for a week or two. At that point, I'll update this issue what what worked for me and if I needed to do anything to fix it.

KarlJay commented 8 years ago

@ryanjm, thanks for your post! It solved my problem.

adamawolf commented 8 years ago

I started seeing this issue after upgrading Cocoapods to 1.0.

As @gunesmert said above, Clearing Derived data fixed this issue for me.

amleszk commented 8 years ago

I also saw this in Cocoapods 1.x and seemed to be fixed this by editing file: MagicalRecord+ShorthandMethods.h

Remove line: #import <MagicalRecord/MagicalRecord.h>

Coeur commented 4 years ago

Please note that nowadays I will only consider issues with CocoaPods 1.7.5 or newer.

There are no issues on develop branch (MagicalRecord 2.4.0), as seen by the Travis builds. But if you do have an issue and if the fix is about modifying an import statement, then please make a pull request and show me that it passes the Travis builds.

For now, I'm closing it as "Can't reproduce".