Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17607

Allow ios-sim to handle multiple versions of Xcode

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Won't Do
    • Major
    • 4.1.x
    • 4.1.1.Final
    • aerogear-hybrid
    • None

    Description

      I get the following error when running a HMT project in an iOS simulator on JBDS 7.1.1 GA:

      dyld: Library not loaded: @rpath/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient
        Referenced from: /Applications/jbdevstudio7.1.1.GA/studio/configuration/org.eclipse.osgi/bundles/923/data//ios-sim
        Reason: image not found
      

      Xcode 5.1.1 is default (Mac OS X Mavericks) and was installed into /Applications/Xcode.app/. Xcode 5.0.2 was installed into /Applications/Xcode 2.app/ and was selected as the default version through xcodeselect. But the error was still reported.

      This is because the ios-sim binary is linked against the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks directory, as seen in output of otool -l /Applications/jbdevstudio7.1.1.GA/studio/configuration/org.eclipse.osgi/bundles/923/data/ios-sim:

      ...
      Load command 17
                cmd LC_RPATH
            cmdsize 128
               path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks (offset 12)
      Load command 18
                cmd LC_RPATH
            cmdsize 80
               path /Applications/Xcode.app/Contents/Developer/../OtherFrameworks (offset 12)
      ...
      

      Implying that Xcode must be installed into the /Applications/Xcode.app directory and not any other, which prevents xcodeselect from being completely useful to 'fix' the desired version of Xcode to use.

      The requirement is to not have this limitation of having the selected version of code installed into /Applications/Xcode.app.

      One way to workaround this limitation currently is to export the project as an Xcode project and then work on it in an older Xcode project.

      Attachments

        Activity

          People

            gercan@redhat.com Gorkem Ercan
            vineet.reynolds_jira Vineet Reynolds (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: