CapacitorLiveUpdates ios issue v0.2.1

After migration from cordova to @capacitor/live-updates v0.2.1 I get the next error:

 error: cannot find type 'KeyValueStore' in scope
        extension KeyValueStore {
        ^~~~~~~~~~~~~
        
        warning: Run script build phase 'Copy GoogleService-Info.plist' will be run during every build because it does
        not specify any outputs. To address this warning, either add output dependencies to the script phase, or
        configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target
        'App' from project 'App')
        warning: Run script build phase '[CP] Embed Pods Frameworks' will be run during every build because it does not
        specify any outputs. To address this warning, either add output dependencies to the script phase, or configure
        it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'App' from
        project 'App')
        ** BUILD FAILED **
        
        
        The following build commands failed:
        SwiftEmitModule normal arm64 Emitting\ module\ for\ CapacitorLiveUpdates (in target 'CapacitorLiveUpdates' from
        project 'Pods')
        (1 failure)

For android everything runs fine, but when I try to run the ios app I get an error.

I am using version 5 of capasitor, and have a m1 macbook. Could this be a problem with the m1 or an incompatibility with version 5 of capasitor?

I tried the downgrade version, but alas, although without the error, the emulator still refuses to run the application

1 Like

@capacitor/live-updates 0.2.1 is meant to be used with Capacitor 6, which requires Xcode 15.x to build.

I’m not certain if it will work in Capacitor 5, but most likely you need Xcode 15.x to build.

Yep, I have xcode 15+ , so it maybe about capacitor, but still why it works fine for android.
I tried to use v0.1.3 that use capacitor v5, but it doesn’t start at all, just said me that you cannot open the “App.app” program because it is not supported by this Mac.
Anyway thank you for your response, I will try to update capacitor.

Did you do npx cap sync after installing the plugin? did it succeeded or show some error?

Looks like the dependency the plugin uses is not installed.

Can you try going to ios/App/ folder and run pod repo update and pod install from a terminal?

For sure, I did, and it was successful. After updating to Capacitor 6, I no longer have this error, but now my app just doesn’t open and crashes with ‘The application “App” unexpectedly quit.’ So, I need to re-check whether I missed anything before I come back.

pod install and pod repo update works as expected

After updating ionic and my xcode I finally get new error trying npx cap sync )

[error] Analyzing dependencies
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/user_interface/error_report.rb:34:in
        `force_encoding': can't modify frozen String (FrozenError)
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/user_interface/error_report.rb:34:in `report'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/command.rb:66:in `report_error'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:396:in `handle_exception'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:337:in `rescue in run'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:324:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/command.rb:52:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/bin/pod:55:in `<top (required)>'
        from /usr/local/bin/pod:23:in `load'
        from /usr/local/bin/pod:23:in `<main>'
        /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project.rb:228:in `initialize_from_file':
        [Xcodeproj] Unknown object version (63). (RuntimeError)
        from /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project.rb:113:in `open'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/analyzer.rb:1194:in `block (2
        levels) in inspect_targets_to_integrate'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/analyzer.rb:1193:in `each'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/analyzer.rb:1193:in `block in
        inspect_targets_to_integrate'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/user_interface.rb:64:in `section'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/analyzer.rb:1188:in
        `inspect_targets_to_integrate'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/analyzer.rb:107:in `analyze'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:422:in `analyze'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:244:in `block in
        resolve_dependencies'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/user_interface.rb:64:in `section'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:162:in `install!'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/command/install.rb:52:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/command.rb:52:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/bin/pod:55:in `<top (required)>'
        from /usr/local/bin/pod:23:in `load'
        from /usr/local/bin/pod:23:in `<main>'

I suppose I just need to update some packages, but pods and ruby updates didn’t help

UPDATE:
Looks that it’s xcode latest version specific issue RuntimeError - [Xcodeproj] Unknown object version (63).: what is this? · Issue #12348 · CocoaPods/CocoaPods · GitHub

but still even after resolving it x-code doesn’t want to open my emulator with this plugin providing only system report

1 Like

I’m having the same error and it doesn’t work by following that workaround