fixed uuid2 creation

This commit is contained in:
Dan Motzenbecker 2015-08-29 01:46:58 -04:00
parent 9efc0f368d
commit e35d8240b4
1 changed files with 3 additions and 4 deletions

View File

@ -83,10 +83,9 @@ init = (projName) ->
.digest('hex')[...24]
.toUpperCase()
uuid2 = uuid1
.split ''
.splice 7, 1, ((parseInt(uuid1[7], 16) + 1) % 16).toString(16).toUpperCase()
.join ''
uuid2 = uuid1.split ''
uuid2.splice 7, 1, ((parseInt(uuid1[7], 16) + 1) % 16).toString(16).toUpperCase()
uuid2 = uuid2.join ''
editSync \
"#{ projName }.xcodeproj/project.pbxproj",