Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Cant build iOS: 'config file undefined requested' #252

Open
louis123562 opened this issue Aug 3, 2021 · 1 comment
Open

Cant build iOS: 'config file undefined requested' #252

louis123562 opened this issue Aug 3, 2021 · 1 comment

Comments

@louis123562
Copy link

Hello,

when i try to build iOS on a fresh project, it stops at

...

Build at: 2021-08-03T08:01:59.509Z - Hash: 821a0c158b6e9af4c76c - Time: 13708ms

> cordova build ios

config file undefined requested for changes not found at /Users/louisspieckerhoff/Desktop/test-app/myApp/platforms/ios/undefined, ignoring

The "path" argument must be of type string. Received undefined

Not a nice error message, but it leads to the entry in config.xml:

    <platform name="ios">
        <config-file parent="com.apple.developer.associated-domains" target="*-Debug.plist">
            <array>
                <string>applinks:example.org</string>
            </array>
        </config-file>
        <config-file parent="com.apple.developer.associated-domains" target="*-Release.plist">
            <array>
                <string>applinks:example.org</string>
            </array>
        </config-file>

Of course i replaced my domain with example.org.
When i remove those lines in config.xml, it compiles all the way through.

Here is my Ionic Info:

Ionic:

   Ionic CLI                     : 6.16.3 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.6.12
   @angular-devkit/build-angular : 12.1.4
   @angular-devkit/schematics    : 12.1.4
   @angular/cli                  : 12.1.4
   @ionic/angular-toolkit        : 4.0.0

Cordova:

   Cordova CLI       : 10.0.0
   Cordova Platforms : android 9.1.0, ios 6.2.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 17 other plugins)

Utility:

   cordova-res                          : 0.15.3
   native-run (update available: 1.4.0) : 1.3.0

System:

   ios-deploy : 1.10.0
   ios-sim    : 8.0.2
   NodeJS     : v14.16.1 (/usr/local/bin/node)
   npm        : 7.12.1
   OS         : macOS Big Sur
   Xcode      : Xcode 12.5.1 Build version 12E507

I already setup new projects and removed/added the iOS-platform several times, but the compilation always stucks at this point.

Does anyone have a solution for this? Thanks in advance :)

@louis123562
Copy link
Author

Okay - what does work is using the following entries in the config.xml:

        <edit-config mode="merge" parent="com.apple.developer.associated-domains" target="*-Info.plist">
            <array>
                <string>applinks:example.org</string>
            </array>
        </edit-config>
        <edit-config mode="merge" parent="com.apple.developer.associated-domains" target="*-Info.plist">
            <array>
                <string>applinks:example.org</string>
            </array>
        </edit-config>

Can someone verify this?!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant