Project: titanium
Issue TIMOB-18199: iOS: iOS modules can not build if there any JS files inside assets folder
iOS modules can not be built if there are any JS files inside the root assets folder. h5. Steps To Reproduce 1. Create an iOS module 2. Place a javascript file with some code in the assets folder at the root. 3. Build the module h5. Expected Result Module should build as usual h5. Actual Result CLI is throwing following error. {code} Traceback (most recent call last): File "build.py", line 262, in compile_js(manifest,config) File "build.py", line 84, in compile_js root_asset, module_assets = compiler.compile_module() File "/Users/kvelummaylum/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141211124115/iphone/compiler.py", line 431, in compile_module root_asset = self.compile_commonjs_file(self.appid+'.js', os.path.join(self.assets_dir, self.appid+'.js')) File "/Users/kvelummaylum/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141211124115/iphone/compiler.py", line 564, in compile_commonjs_file self.compile_js_file(path, from_, js_files) File "/Users/kvelummaylum/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141211124115/iphone/compiler.py", line 578, in compile_js_file self.compile_js_asset_file(path,from_) File "/Users/kvelummaylum/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20141211124115/iphone/compiler.py", line 545, in compile_js_asset_file file_contents = open(os.path.expanduser(file)).read() IOError: [Errno 2] No such file or directory: '/Users/kvelummaylum/Documents/Appcelerator_Studio_Workspace/ModuleTest/iphone/assets/ti.iostest.js' {code} h5.Workaround We need to move the assets folder inside iphone folder.
Story points: 5