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

Could not find module 'ParseSwift' for target 'arm64-apple-macos' #379

Closed
4 tasks done
phbardon opened this issue Jul 4, 2022 · 3 comments
Closed
4 tasks done

Could not find module 'ParseSwift' for target 'arm64-apple-macos' #379

phbardon opened this issue Jul 4, 2022 · 3 comments
Labels
type:question Support or code-level question

Comments

@phbardon
Copy link

phbardon commented Jul 4, 2022

New Issue Checklist

Issue Description

Unable to build ParseSwift Playground downloaded.

I tried to re-install the package, and also to use Pod to install ParseSwift. I tried on MacPro (non-M1 Mac)

Steps to reproduce

  • Download an open

Actual Outcome

Could not find module 'ParseSwift' for target 'arm64-apple-macos'; found: arm64-apple-ios, at: /Users/phbardon/Library/Developer/Xcode/DerivedData/ParseSwift_PN-bvmozlgoznalozhfpaqmtjwxeasl/Build/Intermediates.noindex/Playgrounds/Products/Debug-iphoneos/ParseSwift/ParseSwift.framework/Modules/ParseSwift.swiftmodule

Expected Outcome

Build succeeded

Environment

Client MacBook Pro

  • Parse Swift SDK version: 4.7.0
  • Xcode version: 13.4.1 (13F100)
  • Operating system (iOS, macOS, watchOS, etc.): MacOS
  • Operating system version: 12.4.1

Client Mac Pro

  • Parse Swift SDK version: 4.7.0
  • Xcode version: 13.2.1 (13C100)
  • Operating system (iOS, macOS, watchOS, etc.): MacOS
  • Operating system version: 12.0.1

Server

  • Parse Server version: 3.6.0
  • Operating system: Unknown
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): SASHIDO

Database

  • System (MongoDB or Postgres): Unknown
  • Database version: Unknown
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): MongoDB

Logs

@parse-github-assistant
Copy link

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@cbaker6
Copy link
Contributor

cbaker6 commented Jul 4, 2022

This doesn't look like a bug in the SDK, but rather your Xcode. Try cleaning your build folder and if you still see the error, close Xcode, and delete your DerivedData. I also recommend setting your DerivedData folder from Default to Relative, to do this go to Xcode > Preferences > Locations > Derived Data.

You can also try opening up the Package.swift file in Xcode instead of the Parse workspace file.

When running Playgrounds it's best to set the target to the macOS framework and build for mac. Your target in Xcode should look like below:

image

See the comments at the top of Playground file:

//: For this page, make sure your build target is set to ParseSwift (macOS) and targeting
//: `My Mac` or whatever the name of your mac is. Also be sure your `Playground Settings`
//: in the `File Inspector` is `Platform = macOS`. This is because
//: Keychain in iOS Playgrounds behaves differently. Every page in Playgrounds should
//: be set to build for `macOS` unless specified.

@cbaker6 cbaker6 added the type:question Support or code-level question label Jul 4, 2022
@phbardon
Copy link
Author

phbardon commented Jul 6, 2022

Sorry for my mistake, I forgot to select the MacOS target! Thank you. Philippe.

@phbardon phbardon closed this as completed Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests

2 participants