Skip to content
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

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

Closed
ashish-naik opened this issue Mar 25, 2023 · 3 comments · Fixed by #1783
Closed

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

ashish-naik opened this issue Mar 25, 2023 · 3 comments · Fixed by #1783
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@ashish-naik
Copy link

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

  • Parse ObjC SDK version: 2.2.0

Server

  • Parse Server version: N/A
  • Operating system: macOS 13.1 (22C65)
  • 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

Attached sample project and screenshots.

@parse-github-assistant
Copy link

Thanks for opening this issue!

@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label Mar 25, 2023
@santiagoprieto
Copy link

santiagoprieto commented Apr 21, 2023

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
Copy link
Member

mtrezza commented Apr 22, 2023

Could you take a look whether this is already fixed in #1712?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants