update template file

This commit is contained in:
pengfei.zhou 2020-03-31 19:30:20 +08:00 committed by osborn
parent dc32cf08a8
commit 0067ccc0ef
3 changed files with 5 additions and 3 deletions

View File

@ -125,11 +125,12 @@ function initiOS(path, name) {
'Example.xcodeproj/project.pbxproj',
'Podfile',
].forEach(e => {
fs.writeFileSync(`${pathq}/${e}`,
fs.writeFileSync(`${path}/${e}`,
fs.readFileSync(`${targetiOSPath}/${e}`).toString()
.replace(/__\$__/g, name)
.replace(/__\$Version__/g, currentVersion))
})
fs.renameSync(`${path}/Example.xcodeproj`, `${path}/${name}.xcodeproj`)
console.log(`Create Doric iOS Project Success`)
})
})

View File

@ -365,7 +365,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 7EE2RX3L3P;
INFOPLIST_FILE = Example/Info.plist;
INFOPLIST_FILE = "$(SRCROOT)/App/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
@ -383,7 +383,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 7EE2RX3L3P;
INFOPLIST_FILE = Example/Info.plist;
INFOPLIST_FILE = "$(SRCROOT)/App/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",

View File

@ -1,3 +1,4 @@
source 'https://cdn.cocoapods.org/'
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'