lib/pebble_x/monkey_patches.rb in pebblex-0.0.5 vs lib/pebble_x/monkey_patches.rb in pebblex-0.0.6
- old
+ new
@@ -31,10 +31,10 @@
class Xcodeproj::XCScheme
alias construct_buildable_name_without_legacy_target construct_buildable_name
def construct_buildable_name_with_legacy_target(build_target)
- if build_target.isa
+ if build_target.is_a? Xcodeproj::Project::Object::PBXLegacyTarget
build_target.name
else
construct_buildable_name_without_legacy_target build_target
end
end
\ No newline at end of file