cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darryl Pogue (JIRA)" <>
Subject [jira] [Resolved] (CB-10885) `LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"` missing from iOS `release` builds
Date Tue, 04 Oct 2016 02:45:20 GMT


Darryl Pogue resolved CB-10885.
    Resolution: Fixed

This was fixed with
and should be released as part of cordova-ios@4.3.0

> `LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"` missing from iOS `release`
> -------------------------------------------------------------------------------------------
>                 Key: CB-10885
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 4.0.0, 4.1.0
>            Reporter: Martijn Walraven
>              Labels: triaged
> 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/
>   Reason: image not found
> ```
> It seems the issue results from the changes made in [this commit](,
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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message