swift - Bundle Identifier Changed Core Data Lost -
i changed project objective-c swift , created whole new project when did this. have app in appstore , wanted send update instead of releasing new app.
i understand bundle identifier needs same when updating app. when preparing app release, changed bundle identifier match app in appstore - since started new project - , in process core data file seems missing. if change bundle identifier how keep access core data?
this took me while figure out here how fixed issue.
- change product name under build settings -> packaging -> product name desired product name. change bundle identifier desired name.
clean project selecting product -> clean.
select coredata model in project navigator , select "data model inspector" in inspector tab. change project name under class new class name. got stuck here since did not know spaces, dashes, . replaced underscores. can see product name flo-cycling , coredata class flo_cycling.
- if have imported swift bridging header file anywhere make sure update it.
i hope can someone.
take care,
jon
Comments
Post a Comment