parse-community / Parse-SDK-iOS-OSX

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

Undefined Symbols _OBJC_CLASS_$_Parse #1771

Closed spiderguy84 closed 2 months ago

spiderguy84 commented 5 months ago

New Issue Checklist

Issue Description

### Steps to reproduce ### Actual Outcome ### Expected Outcome ### Environment Client - Parse ObjC SDK version: `2.7.3` Server - Parse Server version: `N/A` - Operating system: `N/A` - Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): `N/A` Database - System (MongoDB or Postgres): `N/A` - Database version: `N/A` - Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): `N/A` ### Logs
parse-github-assistant[bot] commented 5 months ago

Thanks for opening this issue!

JohnCaccavale commented 2 months ago

I seem to be having a similar issue with the macOS SDK today (along with about a hundred Double-quoted include "ParseHeader" in framework header, expected angle-bracketed instead warnings)

My MacOS command line app builds fine when I do a debug build and run. When I try to Archive a Release version of the utility, these errors then occur with Xcode 15.3 running on an Intel based Mac.

There does not seem to be anything out of the ordinary with regard to my Build Settings. Architectures set to ARCHS_STANDARD. Nothing specified for Excluded Architectures.

My logs are as follows.

ld: warning: ignoring file '/Users/John/Documents/MyProject/Parse/Bolts.framework/Versions/A/Bolts': found architecture 'x86_64', required architecture 'arm64' ld: warning: ignoring file '/Users/John/Documents/MyProjectr/Parse/Parse.framework/Versions/A/Parse': found architecture 'x86_64', required architecture 'arm64' Undefined symbols for architecture arm64: "_OBJCCLASS$_PFObject", referenced from: _OBJCCLASS$_MyClass in MyClass.o _OBJCCLASS$_MyClass2 in MyClass2.o in MyClass3.o "_OBJCCLASS$_PFQuery", referenced from: in SomeClass.o "_OBJCCLASS$_Parse", referenced from: in SomeClass.o "_OBJCCLASS$_ParseClientConfiguration", referenced from: in SomeClass.o "_OBJCMETACLASS$_PFObject", referenced from: _OBJCMETACLASS$_SomeClass in SomeClass.o _OBJCMETACLASS$_SomeClass in SomeClass.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

JohnCaccavale commented 2 months ago

@spiderguy84 are you still having this issue. I removed the prebuilt compiled framework from my project, re-added the framework via Swift Package Manager, and these issues went away for me.

mtrezza commented 2 months ago

@JohnCaccavale If the issue is resolved for you, then I'll go ahead and close it. In case @spiderguy84 reports back that the issue still exists, we can re-open.