diff options
| author | Ruslan Mustakov | 2017-10-16 10:30:14 +0700 |
|---|---|---|
| committer | Ruslan Mustakov | 2017-10-16 10:35:58 +0700 |
| commit | 011d997840a95a45294ce44036bf3aee7642285c (patch) | |
| tree | c8efe01e1832ac448ffa99c8124f4bb0c7e3abd2 /platform/iphone/export/export.cpp | |
| parent | 132c6deb28046cb34c09abdfe81173a5750ad8a2 (diff) | |
| download | godot-011d997840a95a45294ce44036bf3aee7642285c.tar.gz godot-011d997840a95a45294ce44036bf3aee7642285c.tar.zst godot-011d997840a95a45294ce44036bf3aee7642285c.zip | |
Diffstat (limited to 'platform/iphone/export/export.cpp')
| -rw-r--r-- | platform/iphone/export/export.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp index 5216dc5d6..0507ef19d 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -592,7 +592,15 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p return err; #ifdef OSX_ENABLED - ep.step("Making .xcarchive", 2); + ep.step("Code-signing dylibs", 2); + DirAccess *dylibs_dir = DirAccess::open(dest_dir + "dylibs"); + ERR_FAIL_COND_V(!dylibs_dir, ERR_CANT_OPEN); + CodesignData codesign_data(p_preset, p_debug); + err = _walk_dir_recursive(dylibs_dir, _codesign, &codesign_data); + memdelete(dylibs_dir); + ERR_FAIL_COND_V(err, err); + + ep.step("Making .xcarchive", 3); String archive_path = p_path.get_basename() + ".xcarchive"; List<String> archive_args; archive_args.push_back("-project"); @@ -611,14 +619,6 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p err = OS::get_singleton()->execute("xcodebuild", archive_args, true); ERR_FAIL_COND_V(err, err); - ep.step("Code-signing dylibs", 3); - DirAccess *dylibs_dir = DirAccess::open(archive_path + "/Products/Applications/" + binary_name + ".app/dylibs"); - ERR_FAIL_COND_V(!dylibs_dir, ERR_CANT_OPEN); - CodesignData codesign_data(p_preset, p_debug); - err = _walk_dir_recursive(dylibs_dir, _codesign, &codesign_data); - memdelete(dylibs_dir); - ERR_FAIL_COND_V(err, err); - ep.step("Making .ipa", 4); List<String> export_args; export_args.push_back("-exportArchive"); |
