venmo / synx

A command-line tool that reorganizes your Xcode project folder to match your Xcode groups

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

info.plist/entitlements/.pch file moved but XCode project file not updated to reflect new location.

ftvs opened this issue · comments

commented

Repro:

  1. Move info.plist/entitlements/.pch file into a group.
  2. Run synx, which moves the file.
  3. Tap on the project in the navigator, then the main target, then the info tab.
    Expected: old plist file still available but in new location.
    Actual: plist file not found.

If the entitlements file is moved, the project will not run.

Workaround: set location of the new files in Xcode. Set plist file from General tab, then set entitlements and .pch file from Build Settings.

In XCode 8 I had to change the path for the entitlements file and the prefix header in the build settings to the new path.