You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Martijn Walraven (JIRA)" <ji...@apache.org> on 2016/03/16 11:36:33 UTC

[jira] [Created] (CB-10885) `LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"` missing from iOS `release` builds

Martijn Walraven created CB-10885:
-------------------------------------

             Summary: `LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"` missing from iOS `release` builds
                 Key: CB-10885
                 URL: https://issues.apache.org/jira/browse/CB-10885
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 4.0.0, 4.1.0
            Reporter: Martijn Walraven


With Cordova iOS 4.0 and higher, the Xcode project only sets `LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"` for `debug` and not for `release` builds. This means the app won't be able to find embedded frameworks at run time. One consequence is that apps with plugins written in Swift will fail because these depend on the Swift core library:

```
dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /var/mobile/Containers/Bundle/Application/B862070D-86B6-4CCB-A484-1A53FBFDB59B/mobileapp.app/mobileapp
  Reason: image not found
```

It seems the issue results from the changes made in [this commit](https://github.com/apache/cordova-ios/commit/2a54fc1b0cd92887fd47af8ef3dfb9de805cc188), where build settings were split-off from `.pbxproj` to `.xcconfig` files. This removed `LD_RUNPATH_SEARCH_PATHS` from the `release` but not the `debug` configuration.

As a workaround, I now set `LD_RUNPATH_SEARCH_PATHS` in `build-extras.xcconfig`, but this should obviously be fixed in the platform itself.

Should this be added back to `.pbxproj`? Or should it be moved to `build.xcconfig`?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org