Skip to content

Commit d3e8e99

Browse files
committed
Merge pull request #313 from geron-cn/v3
fix bug: Framework projects created on Windows cannot run on mac.
2 parents faac3de + 1465fa7 commit d3e8e99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/plugin_generate/modify_template.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ def modify_xcode_proj(self, proj_file_path):
9595

9696
# add libraries search path
9797
libs_path = "/Applications/Cocos/frameworks/%s/prebuilt" % self.version
98-
ios_template_prebuilt_path = os.path.join(libs_path, "ios")
98+
ios_template_prebuilt_path = "%s/%s" % (libs_path, "ios")
9999
pbx_proj.add_library_search_paths(ios_template_prebuilt_path, target_name=ios_target_name, recursive=False)
100-
mac_template_prebuilt_path = os.path.join(libs_path, "mac")
100+
mac_template_prebuilt_path = "%s/%s" % (libs_path, "mac")
101101
pbx_proj.add_library_search_paths(mac_template_prebuilt_path, target_name=mac_target_name, recursive=False)
102102

103103
# add libraries for targets
@@ -106,10 +106,10 @@ def modify_xcode_proj(self, proj_file_path):
106106
for lib in link_libs:
107107
ios_lib_name = "%s iOS.a" % lib
108108
mac_lib_name = "%s Mac.a" % lib
109-
ios_lib_path = os.path.join(ios_template_prebuilt_path, ios_lib_name)
109+
ios_lib_path = "%s/%s" % (ios_template_prebuilt_path, ios_lib_name)
110110
pbx_proj.add_file_if_doesnt_exist(ios_lib_path, ios_lib_group, tree="<group>", target=ios_target_name)
111111

112-
mac_lib_path = os.path.join(mac_template_prebuilt_path, mac_lib_name)
112+
mac_lib_path = "%s/%s" % (mac_template_prebuilt_path, mac_lib_name)
113113
pbx_proj.add_file_if_doesnt_exist(mac_lib_path, mac_lib_group, tree="<group>", target=mac_target_name)
114114

115115
# add studio resources to the xcode project of cpp template

0 commit comments

Comments
 (0)