Skip to content

Failure when reading plist #435

@vdesaintpern

Description

@vdesaintpern
/Library/Ruby/Gems/2.0.0/gems/nanaimo-0.1.0/lib/nanaimo/reader.rb:61:in `initialize': uninitialized constant Nanaimo::Reader::StringScanner (NameError)
    from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.0/lib/xcodeproj/plist.rb:27:in `new'
    from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.0/lib/xcodeproj/plist.rb:27:in `read_from_path'
    from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.0/lib/xcodeproj/project.rb:200:in `initialize_from_file'
    from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.0/lib/xcodeproj/project.rb:102:in `open'
    from /Users/vivien/laBoiteMobile/repos/mobile-apps/hooks/fix_xcode_schemes_extra.rb:3:in `<main>'
Error: Hook failed with error code 1: /Users/vivien/laBoiteMobile/repos/mobile-apps/hooks/fix_xcode_schemes_extra.rb

My fix_xcode_schemes_extra.rb looks like this :

require 'xcodeproj'
xcproj = Xcodeproj::Project.open("platforms/ios/LOCAL-Extracadabra.xcodeproj")
xcproj.recreate_user_schemes
xcproj.save

Reverting to 1.3.3 fixed the issue. Please have a look, I wasted 2h investigating the issue : it looks like some sort of import is missing (I don't know ruby)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions