Forge Component
(4)
Published on 10 Jul by Hugo 
4 votes
Published on 10 Jul by Hugo 


Hi ,


Our app is using TwilioVideoMobile Forge component.

We are facing in build iOS app and generating the ipa file.

Can we get some help here asap.


The iOSBuildLog show as below:


Resolving deltas:  97% (152/156)     

Resolving deltas:  98% (153/156)     

Resolving deltas: 100% (156/156)     

Resolving deltas: 100% (156/156), 

completed with 85 local objects.
  From https://github.com/CocoaPods/Specs
     54b6e95fb56..b3bb9f6452e  master     -> origin/master

** ARCHIVE FAILED **

The following build commands failed:
CompileC /Users/mabs01/Library/Developer/Xcode/DerivedData/InsApp-hjkagnsoggjpnmgbjijelgrhjjfb/Build/Intermediates.noindex/ArchiveIntermediates/InsApp/IntermediateBuildFilesPath/InsApp.build/Debug-iphoneos/InsApp.build/Objects-normal/armv7/TwilioVideoViewController.o InsApp/Plugins/cordova.plugin.twilio.video/TwilioVideoViewController.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
/tmp/build/source/platforms/ios/build/sharedpch

[2019-01-29T06:42:18.165Z] [ERROR] Build failed with the following error: Error compiling Cordova plugin: InsApp/Plugins/cordova.plugin.twilio.video/TwilioVideoViewController.m.
[2019-01-29T06:42:18.165Z] [INFO] Zipping application source...
[2019-01-29T06:43:12.141Z] [INFO] Application was not successfully generated!
[2019-01-29T06:43:12.154Z] [INFO] Execution time: 216243ms

Solution

Hello,


That's a funny issue, the build is breaking due to a foobar line on the plugin code.

cordova.plugin.twilio.video/TwilioVideoViewController.m:98:8: error: no visible @interface for 'TwilioVideoViewController' declares the selector 'writeJavascript:' [self writeJavascript:@"alert('foo');"];


Fix this and the app will build without issues.

Regards,

Solution


Thank you, Nuno Silva. You saved our day.