mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-03-29 00:48:07 +08:00
[clean] Do not remove momd when no xcdatamodeld is available.
Related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-649
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,5 +1,7 @@
|
||||
= RubyMotion 2.38 =
|
||||
|
||||
* Fixed a bug where a compiled Core Data model would be removed when cleaning
|
||||
when an original `xcdatamodeld' was not available.
|
||||
* Fixed a bug where in certain circumstances cleaning would try to be
|
||||
performed when the vendor dir, e.g. `vendor/Pods' did not exist.
|
||||
* [OSX] Fixed a bug where embedded frameworks would not be codesigned as per
|
||||
|
||||
@@ -299,6 +299,7 @@ EOS
|
||||
paths.concat(Dir.glob(self.resources_dirs.flatten.map{ |x| x + '/**/*.{nib,storyboardc,momd}' }))
|
||||
paths.each do |p|
|
||||
next if File.extname(p) == ".nib" && !File.exist?(p.sub(/\.nib$/, ".xib"))
|
||||
next if File.extname(p) == ".momd" && !File.exist?(p.sub(/\.momd$/, ".xcdatamodeld"))
|
||||
App.info 'Delete', relative_path(p)
|
||||
rm_rf p
|
||||
if File.exist?(p)
|
||||
|
||||
Reference in New Issue
Block a user