Parse-SDK-iOS-OSX icon indicating copy to clipboard operation
Parse-SDK-iOS-OSX copied to clipboard

Xcode Build Configuration that enable DEBUG must prefix their name with "Debug"

Open dhoerl-lp opened this issue 1 year ago • 2 comments

New Issue Checklist

Issue Description

Since 4.2.0, a Build Configuration that we have with a name "Local" crashes at launch. The error is PFPin has not been registered. However, if the config is renamed to "DebugLocal", everything works.

Steps to reproduce

  • with a working "Debug" Build Configuration, duplicate it
  • the name will be "Debug copy" - build and run it - should have no problems
  • then name it to "Foo"
  • now build and run it

Actual Outcome

Your app crashes and with an error that some class or the other is not registered.

Expected Outcome

Parse should not care what the Build Configuration is named.

Environment

  • iOS 18.2 device (Simulator or real, doesn't matter)
  • Xcode 16.2

Client

  • Parse ObjC SDK version: 4.2.0

Server

  • Parse Server version: n/a
  • Operating system: n/a`
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): AWS

Database

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

Logs

n/a

dhoerl-lp avatar Dec 19 '24 23:12 dhoerl-lp

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.

@dhoerl-lp Would you like to work on this? https://github.com/parse-community/Parse-SDK-iOS-OSX/pull/1811 should be able to explain why this is happening and give you some context

dplewis avatar Jan 09 '25 01:01 dplewis

I was able to get it to work using the starter project. You need to edit the schema to use Foo in this case for the run.

ParseStarterProject.zip

Closing, please reopen with a sample project

dplewis avatar Nov 11 '25 16:11 dplewis