mosabab commented on issue #113:
URL: https://github.com/apache/cordova-fetch/issues/113#issuecomment-1533900284

   Ok,
   I ignore my app, and just to test with cordova hello world app.
   
   This what I run on Terminal:
   ```
   Last login: Thu May  4 02:59:46 on ttys000
   mosabab@Mosabs-MacBook-Pro ~ % cd desktop
   mosabab@Mosabs-MacBook-Pro desktop % cd hello-app
   mosabab@Mosabs-MacBook-Pro hello-app % sudo cordova platform add ios 
--verbose
   Password:
   No scripts found for hook "before_platform_add".
   No version supplied. Retrieving version from config.xml...
   Grabbing pinned version.
   Using cordova-fetch for cordova-ios@^6.2.0
   fetch: Installing cordova-ios@^6.2.0 to /Users/mosabab/Desktop/hello-app
   Running command: npm install cordova-ios@^6.2.0 --save-dev
   Command finished with error code 0: npm install,cordova-ios@^6.2.0,--save-dev
   Removing "cordova-" prefix from cordova-ios
   Adding ios project...
   Loaded API for ios project 
/Users/mosabab/Desktop/hello-app/node_modules/cordova-ios
   Creating Cordova project for the iOS platform:
        Path: platforms/ios
        Package: io.cordova.hellocordova
        Name: HelloCordova
   Copying iOS template project to 
/Users/mosabab/Desktop/hello-app/platforms/ios
   iOS project created with cordova-ios@6.3.0
   Loaded API for ios project 
/Users/mosabab/Desktop/hello-app/platforms/ios/cordova/Api.js
   Generating platform-specific config.xml from defaults for iOS at 
/Users/mosabab/Desktop/hello-app/platforms/ios/HelloCordova/config.xml
   Merging project's config.xml into platform-specific iOS config.xml
   Merging and updating files from [www, platforms/ios/platform_www] to 
platforms/ios/www
     mkdir platforms/ios/www/cordova-js-src
     copy  platforms/ios/platform_www/cordova-js-src/exec.js 
platforms/ios/www/cordova-js-src/exec.js (new file)
     copy  platforms/ios/platform_www/cordova-js-src/platform.js 
platforms/ios/www/cordova-js-src/platform.js (new file)
     mkdir platforms/ios/www/cordova-js-src/plugin
     mkdir platforms/ios/www/cordova-js-src/plugin/ios
     copy  platforms/ios/platform_www/cordova-js-src/plugin/ios/console.js 
platforms/ios/www/cordova-js-src/plugin/ios/console.js (new file)
     copy  platforms/ios/platform_www/cordova-js-src/plugin/ios/launchscreen.js 
platforms/ios/www/cordova-js-src/plugin/ios/launchscreen.js (new file)
     copy  platforms/ios/platform_www/cordova-js-src/plugin/ios/logger.js 
platforms/ios/www/cordova-js-src/plugin/ios/logger.js (new file)
     copy  platforms/ios/platform_www/cordova-js-src/plugin/ios/wkwebkit.js 
platforms/ios/www/cordova-js-src/plugin/ios/wkwebkit.js (new file)
     copy  platforms/ios/platform_www/cordova.js platforms/ios/www/cordova.js 
(updated file)
     copy  www/css/index.css platforms/ios/www/css/index.css (updated file)
     copy  www/index.html platforms/ios/www/index.html (updated file)
     copy  www/js/index.js platforms/ios/www/js/index.js (updated file)
   Wrote out iOS Bundle Version "1.0.0" to 
/Users/mosabab/Desktop/hello-app/platforms/ios/HelloCordova/HelloCordova-Info.plist
   Set PRODUCT_BUNDLE_IDENTIFIER to io.cordova.hellocordova.
   iOS Product Name has not changed (still "HelloCordova")
   This app does not have icons defined
   Updating launch storyboard images at 
platforms/ios/HelloCordova/Images.xcassets/LaunchStoryboard.imageset/
   Updating Storyboard image set contents.json
   Updating Background Color color set Contents.json
   This app does not have additional resource files defined
   Prepared iOS project successfully
   No scripts found for hook "before_prepare".
   Checking for saved platforms that haven't been added to the project
   Checking for saved plugins that haven't been added to the project
   Plugin 'cordova-plugin-vibration' found in config.xml... Migrating it to 
package.json
   Discovered plugin "cordova-plugin-vibration". Adding it to the project
   No scripts found for hook "before_plugin_add".
   Calling plugman.fetch on plugin 
"https://github.com/apache/cordova-plugin-vibration.git";
   Failed to fetch plugin 
https://github.com/apache/cordova-plugin-vibration.git via registry.
   Probably this is either a connection problem, or plugin spec is incorrect.
   Check your connection and plugin name/version/URL.
   CordovaError: Error: An unknown git error occurred
   CordovaError: Failed to fetch plugin 
https://github.com/apache/cordova-plugin-vibration.git via registry.
   Probably this is either a connection problem, or plugin spec is incorrect.
   Check your connection and plugin name/version/URL.
   CordovaError: Error: An unknown git error occurred
       at 
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:140:43
   mosabab@Mosabs-MacBook-Pro hello-app % 
   ```
   
   `config.xml` inculde:
   ```
   <?xml version="1.0" encoding="UTF-8"?>
   <!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
   
    http://www.apache.org/licenses/LICENSE-2.0
   
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
   -->
   <widget xmlns="http://www.w3.org/ns/widgets";
       xmlns:cdv="http://cordova.apache.org/ns/1.0";
       id="io.cordova.hellocordova"
       version="1.0.0">
       <name>HelloCordova</name>
       <description>Sample Apache Cordova App</description>
       <author email="d...@cordova.apache.org" 
href="https://cordova.apache.org";>
           Apache Cordova Team
       </author>
   
       <plugin name="cordova-plugin-vibration" 
spec="https://github.com/apache/cordova-plugin-vibration.git"; />
   
       <!-- https://s.apache.org/cdv-content-config -->
       <content src="index.html" />
   
       <!-- To allow connections to other resources, you must explicitly permit 
them using `access` tags. -->
       <!-- https://s.apache.org/cdv-network-request-access -->
       <!-- Example:
       <access origin="https://cordova.apache.org"; />
       -->
   
       <!-- To control which URLs the WebView itself can be navigated to, use 
the `allow-navigation` tags. -->
       <!-- https://s.apache.org/cdv-allow-navigation -->
       <!-- Example:
       <allow-navigation href="https://cordova.apache.org/*"; />
       -->
   
       <!-- To control which URLs the app is allowed to ask the system to open, 
use the `allow-intent` tags. -->
       <!-- https://s.apache.org/cdv-allow-intent -->
       <allow-intent href="http://*/*"; />
       <allow-intent href="https://*/*"; />
   </widget>
   ```
   
   `package.json` include:
   ```
   {
     "name": "io.cordova.hellocordova",
     "displayName": "HelloCordova",
     "version": "1.0.0",
     "description": "A sample Apache Cordova application that responds to the 
deviceready event.",
     "main": "index.js",
     "scripts": {
       "test": "echo \"Error: no test specified\" && exit 1"
     },
     "keywords": [
       "ecosystem:cordova"
     ],
     "author": "Apache Cordova Team",
     "license": "Apache-2.0"
   }
   ```
   
   And the fold of default cordova hello world app:
   
![Untitled](https://user-images.githubusercontent.com/47486787/236076646-e5cae42a-830f-48a7-896c-49ea3ca6befa.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to