cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darryl Pogue (JIRA)" <j...@apache.org>
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

     [ https://issues.apache.org/jira/browse/CB-10885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Darryl Pogue resolved CB-10885.
-------------------------------
    Resolution: Fixed

This was fixed with https://github.com/apache/cordova-ios/commit/f74e2de6ac6e33981edb2e331d6953d20ae5f4de
and should be released as part of cordova-ios@4.3.0

> `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
>              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/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


Mime
View raw message