NSKeyedUnarchiver error after renaming Xcode project for OSX

后端 未结 3 1500
面向向阳花
面向向阳花 2021-01-14 22:58

I am having issues with (I think) the namespace after changing the project name. Here is the error:

Terminating app due to uncaught exception \'NSInva

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-14 23:49

    It happens because your *.xcodeproj (project.pbxproj) by default use $(TARGET_NAME) for Product Name and $(PRODUCT_NAME) in another fields. For example, Product Module Name by default setted as $(PRODUCT_NAME:c99extidentifier). All you need is replace all PRODUCT_NAME to TARGET_NAME in Build Settings.

提交回复
热议问题