parse-community / Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
https://parseplatform.org
Other
2.81k stars 864 forks source link

Library not loaded: @rpath/Bolts.framework/Versions/A/Bolts #1647

Closed mistralaix closed 2 years ago

mistralaix commented 2 years ago

New Issue Checklist

Issue Description

Hello, I installed the Parse SDK through CocoaPods and when I try to run the project on Mac catalyst, I can build the project but I have this error at the beginning of the run:

dyld[88120]: Library not loaded: @rpath/Bolts.framework/Versions/A/Bolts
  Referenced from: /Users/me/Library/Developer/Xcode/DerivedData/myproject-aonhubtyosxwqhaqhrzbjchzjkbq/Build/Products/Debug-maccatalyst/myproject.app/Contents/MacOS/myproject
  Reason: tried: '/Users/me/Library/Developer/Xcode/DerivedData/myproject-aonhubtyosxwqhaqhrzbjchzjkbq/Build/Products/Debug-maccatalyst/Bolts.framework/Versions/A/Bolts' (no such file),

And there's around 20 more lines where it's showing the different paths that the system tried.

Any idea on how to fix it?

Steps to reproduce

Actual Outcome

Expected Outcome

Environment

Client

Logs

parse-github-assistant[bot] commented 2 years ago

Thanks for opening this issue!

mtrezza commented 2 years ago

Parse ObjC SDK version: 1.9.3

Is that correct?

mistralaix commented 2 years ago

@mtrezza Ho my bad, 1.19.3 yes (I just updated the issue). Sorry for the typo...

mistralaix commented 2 years ago

@mtrezza I'm on an M1 mac btw (I don't know if it can help)

mtrezza commented 2 years ago

Do you have access to an Intel macOS where you can try to see if the same issue occurs there?

mistralaix commented 2 years ago

@mtrezza Just tested it on an Intel one (with MacOS 12.2) and the same bug happens.

mman commented 2 years ago

@mistralaix Make sure you embed Parse.framework and Bolts.framework into your Xcode target, looks like you are not embedding the Bolts.framework correctly.

drdaz commented 2 years ago

@mistralaix Does pod install complete without error? Cocoapods should install Bolts for you...

mistralaix commented 2 years ago

@drdaz After deleting my pods multiple times, updating the repo and installing it again, I don't have any errors with cocoapods.

@mman Since I installed it with cocoapods, I don't embed them manually. I tried to manually add Bolts.framework and Parse.framework. If in the Embed Options, I put Do not Embed, I have the same error. If I put Embed & Sign or Embed Without Signing, I have an error when I try to build saying that multiple commands produces the same output. It's in conflict with the script phase [CP] Embed Pods Frameworks

drdaz commented 2 years ago

@drdaz After deleting my pods multiple times, updating the repo and installing it again, I don't have any errors with cocoapods.

So... do you still have errors building once Cocoapods install doesn't error anymore? πŸ™‚

mistralaix commented 2 years ago

@drdaz Ho sorry I didn't precise it but I didn't have any errors before. Still the same thing is happening after re-installing all the pods (I've tried to do that several times since the beginning). The same error is always happening.

drdaz commented 2 years ago

@mistralaix Can you try making 2 fresh Xcode projects with just the Parse dependency via Cocoapods? One should be a Mac Catalyst project, and the other an iOS project.

Do either or both of those projects fail to build?

EDIT: I realise now that I haven't worked enough with Mac Catalyst to know whether the above instructions make any sense πŸ˜…

But if you can tell us if this only occurs for you when using Mac Catalyst, that would be a big step towards being able to debug this.

drdaz commented 2 years ago

I just tried making a blank project with Parse as a Cocopods dependency. It builds and runs fine using both iOS and Mac Catalyst. So... I think there's something up with your project / workspace.

mtrezza commented 2 years ago

I'm closing this as it does not seem to be a Parse ObjC SDK issue.