Can't use webview+ engine for IOS


#1
  • Cocoon Version:
    latest

  • Basic description of the problem:
    can’t compile construct 2 game with Webview+ engine (tried all versions)

  • Steps will reproduce the problem:

  1. Compile construct 2 game (r244) with cordova
  2. upload to cocoon.io and try to compile an ios build with webwiew+ engine
  3. get an error
  • Error log
    COMPILER ERROR:

Internal compiler error

CORDOVA LOG:

veloper/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/testing_dependency_info.dat -o /Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/testing
duplicate symbol OBJC_IVAR$_CDVWKWebViewEngine._engineWebView in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-D11ACA7BBBCE699F.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-E733EA5959F91787.o
duplicate symbol OBJC_IVAR$_CDVWKWeakScriptMessageHandler._scriptMessageHandler in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-D11ACA7BBBCE699F.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-E733EA5959F91787.o
duplicate symbol OBJC_IVAR$_CDVWKWebViewEngine._weakScriptMessageHandler in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-D11ACA7BBBCE699F.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-E733EA5959F91787.o
duplicate symbol OBJC_CLASS$_CDVWKWeakScriptMessageHandler in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-D11ACA7BBBCE699F.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-E733EA5959F91787.o
duplicate symbol OBJC_METACLASS$_CDVWKWeakScriptMessageHandler in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-D11ACA7BBBCE699F.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-E733EA5959F91787.o
duplicate symbol OBJC_IVAR$_CDVWKWebViewEngine._uiDelegate in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-D11ACA7BBBCE699F.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-E733EA5959F91787.o
duplicate symbol OBJC_CLASS$_CDVWKWebViewEngine in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-D11ACA7BBBCE699F.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-E733EA5959F91787.o
duplicate symbol OBJC_METACLASS$_CDVWKWebViewEngine in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-D11ACA7BBBCE699F.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewEngine-E733EA5959F91787.o
duplicate symbol OBJC_CLASS$_CDVWKWebViewUIDelegate in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewUIDelegate-64FAFC2803D54A70.oe[32m[2017-12-28 02:24:15.068] [INFO] IOSBuilder - e[39m/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewUIDelegate-9907A19765050D94.o
duplicate symbol OBJC_METACLASS$_CDVWKWebViewUIDelegate in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewUIDelegate-64FAFC2803D54A70.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewUIDelegate-9907A19765050D94.o
duplicate symbol OBJC_IVAR$_CDVWKWebViewUIDelegate._title in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewUIDelegate-64FAFC2803D54A70.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewUIDelegate-9907A19765050D94.o
ld: 11 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewUIDelegate-9907A19765050D94.o
duplicate symbol OBJC_METACLASS$_CDVWKWebViewUIDelegate in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewUIDelegate-64FAFC2803D54A70.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewUIDelegate-9907A19765050D94.o
duplicate symbol OBJC_IVAR$_CDVWKWebViewUIDelegate._title in:
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewUIDelegate-64FAFC2803D54A70.o
/Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/CDVWKWebViewUIDelegate-9907A19765050D94.o
ld: 11 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)e[31m[2017-12-28 02:24:15.084] [ERROR] IOSBuilder - e[39m** ARCHIVE FAILED **

The following build commands failed:
Ld /Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/armv7/testing normal armv7
Ld /Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/testing normal arm64
** ARCHIVE FAILED **

The following build commands failed:
Ld /Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/armv7/testing normal armv7
Ld /Library/Developer/Xcode/DerivedData/testing-csbgnchczbmrwmdirdcmgmzwgllz/Build/Intermediates/ArchiveIntermediates/testing/IntermediateBuildFilesPath/testing.build/Release-iphoneos/testing.build/Objects-normal/arm64/testing normal arm64e[31m[2017-12-28 02:24:15.123] [ERROR] IOSBuilder - e[39m(2 failures)
(2 failures)e[36m[2017-12-28 02:24:15.125] [DEBUG] IOSBuilder - e[39m[build] clean
e[36m[2017-12-28 02:24:15.125] [DEBUG] IOSBuilder - e[39m[build] remove keychain

no plugin, just an empty construct 2 project


#2

Hey! Did you resolved this?


#3

Just made a built for iOS using WebView+ and it’s building well.
Using also Cocoon Version 2.2.0.

Maybe it’s a missconfiguration of your config.xml file. Have you followed this guide?

If so, the built should work fine.

Regards
Andy


#4

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.