Issues with Adding IOS Platform


#1

I have been having a horrible time with getting my app built to iOS. I have gotten close a few times, but each time something seems to stop me. I decided to try the entire process from scratch, so I deleted the platforms/ios directory, and I tried to do a new ionic platform add ios and this is the error I am getting now. Can anyone provide any thoughts or assistance?

C:\Dropbox\Projects\ionic\CollectHub>ionic platform add ios
Updated the hooks directory to have execute permissions
WARNING: Applications for platform ios can not be built on this OS - win32.
Running command: “C:\Program Files\nodejs\node.exe” C:\Dropbox\Projects\ionic\Co
llectHub\hooks\before_platform_add\init_directories.js C:\Dropbox\Projects\ionic
\CollectHub
Adding ios project…
shell.js: internal error
Error: EPERM, operation not permitted 'C:\Dropbox\Projects\ionic\CollectHub\plat
forms\ios\ionFullApp’
at Error (native)
at Object.fs.renameSync (fs.js:636:18)
at C:\Users\rober.cordova\lib\npm_cache\cordova-ios\3.9.1\package\bin\node_
modules\shelljs\shell.js:495:8
at Array.forEach (native)
at Object._mv (C:\Users\rober.cordova\lib\npm_cache\cordova-ios\3.9.1\packa
ge\bin\node_modules\shelljs\shell.js:471:11)
at Object.mv (C:\Users\rober.cordova\lib\npm_cache\cordova-ios\3.9.1\packag
e\bin\node_modules\shelljs\shell.js:1491:23)
at Object.exports.createProject (C:\Users\rober.cordova\lib\npm_cache\cordo
va-ios\3.9.1\package\bin\lib\create.js:175:11)
at Object. (C:\Users\rober.cordova\lib\npm_cache\cordova-ios\3.9
.1\package\bin\create:53:12)
at Module._compile (module.js:460:26)
at Object.Module._extensions…js (module.js:478:10)
Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (C:\Users\rober\AppData\Roaming\npm\node_modules\co
rdova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)


#2

Seems that just deleting the platforms/ios folder was not right, instead I did an ionic platform remove ios then retried the add ios, and it seemed to work. Go figure.