Hello,

I am experiencing this kind of error when generating native app for IOS. I have generated and tested the android version of the plugin and it is working properly. The iOS side is giving me the issue. I am new to iOS developement so any help would be appreciated. You can find my plugin source code at https://github.com/saltynarwhal/squarePOSplugin


[2019-02-08T17:54:01.369Z] [INFO] Start processing job request...
[2019-02-08T17:54:01.377Z] [INFO] Start generating application...
[2019-02-08T17:54:01.377Z] [INFO] Template version: 4.0.1
[2019-02-08T17:54:01.377Z] [INFO] Build features: cordovaNoFetch - true
[2019-02-08T17:54:01.377Z] [INFO] Build features: buildTimeout - 20
[2019-02-08T17:54:01.378Z] [INFO] Creating a temporary folder for the application...
[2019-02-08T17:54:01.378Z] [INFO] Creating the required directory structure for your cordova application...
[2019-02-08T17:54:09.908Z] [INFO] Getting application resources...
[2019-02-08T17:54:09.955Z] [INFO] Processing application resources...
[2019-02-08T17:54:10.271Z] [INFO] Generating application assets...
[2019-02-08T17:54:14.233Z] [INFO] Applying configurations in the config.xml file...
[2019-02-08T17:54:14.242Z] [INFO] Applying advanced configurations in the config.xml file...
[2019-02-08T17:54:14.243Z] [INFO] Applying custom application icons...
[2019-02-08T17:54:14.243Z] [INFO] Applying custom application splashscreens...
[2019-02-08T17:54:14.243Z] [INFO] Applying application preferences...
[2019-02-08T17:54:14.244Z] [INFO] Applying application accessList...
[2019-02-08T17:54:14.244Z] [INFO] Adding target platform...
[2019-02-08T17:55:03.132Z] [INFO] Applying plugins in the config.xml file...
[2019-02-08T17:55:03.132Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-geolocation.git#2.4.1
[2019-02-08T17:55:03.133Z] [INFO] Plugin Action: add
[2019-02-08T17:55:08.263Z] [INFO] Plugin Id: https://github.com/saltynarwhal/squarePOSplugin
[2019-02-08T17:55:08.263Z] [INFO] Plugin Action: add
[2019-02-08T17:55:20.559Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-camera#4.0.3-OS
[2019-02-08T17:55:20.559Z] [INFO] Plugin Action: add
[2019-02-08T17:55:24.054Z] [INFO] Plugin Id: https://github.com/luissilvaos/cordova-outsystems-debuglogs.git#0.0.4
[2019-02-08T17:55:24.054Z] [INFO] Plugin Action: add
[2019-02-08T17:55:27.997Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-camera#4.0.3-OS
[2019-02-08T17:55:27.997Z] [INFO] Plugin Action: add
[2019-02-08T17:55:30.977Z] [INFO] Plugin Id: https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#1.1.1
[2019-02-08T17:55:30.977Z] [INFO] Plugin Action: add
[2019-02-08T17:55:33.697Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-inappbrowser.git#1.7.0-os
[2019-02-08T17:55:33.698Z] [INFO] Plugin Action: add
[2019-02-08T17:55:36.915Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-secure-storage.git#v2.6.3
[2019-02-08T17:55:36.915Z] [INFO] Plugin Action: add
[2019-02-08T17:55:39.795Z] [INFO] Getting signing keys...
[2019-02-08T17:55:39.851Z] [INFO] Building application package...
[2019-02-08T17:57:28.037Z] [ERROR]   remote: Enumerating objects: 1             remote: Enumerating objects: 9, done.        
  remote: Counting objects:  11% (1/9)             remote: Counting objects:  22% (2/9)             remote: Counting objects:  33% (3/9)             remote: Counting objects:  44% (4/9)             remote: Counting objects:  55% (5/9)             remote: Counting objects:  66% (6/9)             remote: Counting objects:  77% (7/9)             remote: Counting objects:  88% (8/9)             remote: Counting objects: 100% (9/9)             remote: Counting objects: 100% (9/9), done.        
  remote: Compressing objects:  20% (1/5)             remote: Compressing objects:  40% (2/5)             remote: Compressing objects:  60% (3/5)             remote: Compressing objects:  80% (4/5)             remote: Compressing objects: 100% (5/5)             remote: Compressing objects: 100% (5/5), done.        
  remote: Total 9 (delta 4), reused 7 (delta 4), pack-reused 0        
  From https://github.com/CocoaPods/Specs
     f3bb1342add..4f990f3e190  master     -> origin/master

** ARCHIVE FAILED **


The following build commands failed:
CompileC /Users/mabs01/Library/Developer/Xcode/DerivedData/Service-dzwukcbkujbkbudtukbdfxezgcqd/Build/Intermediates.noindex/ArchiveIntermediates/Service/IntermediateBuildFilesPath/Service.build/Debug-iphoneos/Service.build/Objects-normal/armv7/squarePOSplugin.o Service/Plugins/cordova-plugin-squarePOS/squarePOSplugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
/tmp/build/source/platforms/ios/build/sharedpch,-UseModernBuildSystem=0

[2019-02-08T17:57:28.038Z] [ERROR] Build failed with the following error: Error compiling Cordova plugin: Service/Plugins/cordova-plugin-squarePOS/squarePOSplugin.m.
[2019-02-08T17:57:28.039Z] [INFO] Zipping application source...
[2019-02-08T17:57:38.413Z] [INFO] Application was not successfully generated!

Hi Jordan Strong

To resolve the issue you are experiencing perform the following steps:

  1. Open your module in service studio
  2. Select the module name in the right pane.
  3. In the properties, change the Extensibility Configurations property to the following:
{
    "plugin": {
        "url": "YOUR PLUGIN GIT URL"
    }
}

Regenerate the applications  Build & try...

Thanks

assif_tiger

assif_tiger wrote:

Hi Jordan Strong

To resolve the issue you are experiencing perform the following steps:

  1. Open your module in service studio
  2. Select the module name in the right pane.
  3. In the properties, change the Extensibility Configurations property to the following:
{
    "plugin": {
        "url": "YOUR PLUGIN GIT URL"
    }
}

Regenerate the applications  Build & try...

Thanks

assif_tiger

I have done that. I had this in my plugin template module.



Hi there,

the issue seems at the Plugin end for iOS

assif_tiger wrote:

Hi there,

the issue seems at the Plugin end for iOS


Yeah the android version of the plugin compiles just fine and the app works too. I have even gone through the iOS app and basically just made it a super simple app that doesn't even try to import the needed SDK and it still won't compile. I am still very new to iOS development and Cordova and I don't know what is causing the app build to fail.