Xcode 7.2.1: Moving a workspace file breaks absolute path to included Xcode project (should use relative paths)

Originator:aralbalkan
Number:rdar://24883127 Date Originated:29-Feb-2016 10:53 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.2.1 (7C1002)
Classification:Security Reproducible:Always
 
Summary:

I renamed and moved a workspace file. Now it’s broken.

Steps to Reproduce:

Move your workspace file to a different directory. I did this after a rename of the project.

Expected Results:

It should just work.

Actual Results:

It uses absolute paths and fails.

Notes:

If the location to the xcodeproj file was relative to the workspace file, it would still work.

Whenever possible, please refactor Xcode to use *relative paths*.

<?xml version="1.0" encoding="UTF-8"?>
<Workspace
   version = "1.0">
   <FileRef
      location = "group:/Users/aral/ind.ie/products/OldName/app/OldName/NewName.xcodeproj">
   </FileRef>
</Workspace>

(The actual file is now at /Users/aral/ind.ie/porducts/NewName/app/NewName/NewName.xcodeproj”)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!