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

'Parse/Parse.h' file not found when including Parse using SPM #1729

Closed ashish-naik closed 2 months ago

ashish-naik commented 1 year ago

Issue Description

i am using Cocoapods but want to move to SPM so removed from podfile but getting error 'Parse/Parse.h' file not found. in bridging header file. I selected FacebookUtilsiOS, ParseObjc, ParseUI.

i tried selecting all modules but facebookUtilstvOS kept giving compiling error. i Added tvOS in destinations also.

facebook-ios-sdk/FBSDKTVOSKit.xcframework:1:1 While building for iOS, no library for this platform was found in

Already raised on Community forum but no solution received yet so raising here.

Steps to reproduce

Happening in fresh Xcode project also with latest version 2.2.0

Environment

Xcode 14.2 M1 Mac

Client

Server

Database

Logs

Attached sample project and screenshots.

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this issue!

santiagoprieto commented 1 year ago

I got it to work by changing two settings: Targets > Your Target > Build Settings > Packaging > Defines Module > No Targets > Your Target > Build Settings > Search Paths > Framework Search Paths > $(PROJECT_DIR) $(inherited)

And then I also removed the #import <Parse/Parse.h> from the Bridging Header and used import ParseCore on each file that needed parse.

mtrezza commented 1 year ago

Could you take a look whether this is already fixed in https://github.com/parse-community/Parse-SDK-iOS-OSX/pull/1712?