Closed sv955 closed 3 years ago
Have you tried to build the sample app? For the sample app, WebView*.mm are compiled without any issue. My environment is Unity 2020.3.2f1 and Xcode 12.4.
cf. https://github.com/gree/unity-webview/tree/a11f2c2dff17feb9ebbed5beb81721ca5d5db348#sample-project
Hi KojiNakamaru,
I am still facing same issue. I am able to create the IPA and it runs on iOS devices without any issue. But when I am uploading this to Appstore, I am getting this error.
This is the exact solution of the issue but this framework doesn't support this.
It says - "There shouldn't be anything inside of /Frameworks other than .framework bundles or the Swift runtime dylibs."
Here is the output of unzip -l sample.ipa that I built the sample app as is. There is no WebView.mm/WebViewWithUIWebView.mm under Frameworks. Also the sample app doesn't include any swift-related staff. I guess you did something for swift in which you incorrectly copied these files.
Archive: sample.ipa
Length Date Time Name
--------- ---------- ----- ----
0 05-05-2021 15:22 Payload/
0 05-05-2021 15:22 Payload/sample.app/
0 05-05-2021 15:22 Payload/sample.app/_CodeSignature/
11307 05-05-2021 15:22 Payload/sample.app/_CodeSignature/CodeResources
138 05-05-2021 15:22 Payload/sample.app/LaunchScreen-iPhonePortrait.png
138 05-05-2021 15:22 Payload/sample.app/LaunchScreen-iPhoneLandscape.png
2149 05-05-2021 15:22 Payload/sample.app/AppIcon60x60@2x.png
138 05-05-2021 15:22 Payload/sample.app/LaunchScreen-iPad.png
0 05-05-2021 15:22 Payload/sample.app/LaunchScreen-iPad.storyboardc/
934 05-05-2021 15:22 Payload/sample.app/LaunchScreen-iPad.storyboardc/UIViewController-UnityLaunchScreen-ViewController.nib
2392 05-05-2021 15:22 Payload/sample.app/LaunchScreen-iPad.storyboardc/UnityLaunchScreen-ViewController-view-UnityLaunchScreen-RootView.nib
333 05-05-2021 15:22 Payload/sample.app/LaunchScreen-iPad.storyboardc/Info.plist
29624 05-05-2021 15:22 Payload/sample.app/Assets.car
2663 05-05-2021 15:22 Payload/sample.app/AppIcon76x76@2x~ipad.png
0 05-05-2021 15:22 Payload/sample.app/LaunchScreen-iPhone.storyboardc/
934 05-05-2021 15:22 Payload/sample.app/LaunchScreen-iPhone.storyboardc/UIViewController-UnityLaunchScreen-ViewController.nib
2407 05-05-2021 15:22 Payload/sample.app/LaunchScreen-iPhone.storyboardc/UnityLaunchScreen-ViewController-view-UnityLaunchScreen-RootView.nib
333 05-05-2021 15:22 Payload/sample.app/LaunchScreen-iPhone.storyboardc/Info.plist
69440 05-05-2021 15:22 Payload/sample.app/sample
0 05-05-2021 15:22 Payload/sample.app/Frameworks/
0 05-05-2021 15:22 Payload/sample.app/Frameworks/UnityFramework.framework/
0 05-05-2021 15:22 Payload/sample.app/Frameworks/UnityFramework.framework/_CodeSignature/
2016 05-05-2021 15:22 Payload/sample.app/Frameworks/UnityFramework.framework/_CodeSignature/CodeResources
808 05-05-2021 15:22 Payload/sample.app/Frameworks/UnityFramework.framework/Info.plist
14619552 05-05-2021 15:22 Payload/sample.app/Frameworks/UnityFramework.framework/UnityFramework
648482 05-05-2021 15:22 Payload/sample.app/Frameworks/UnityFramework.framework/profile.json
7301 05-05-2021 15:22 Payload/sample.app/embedded.mobileprovision
0 05-05-2021 15:22 Payload/sample.app/Data/
0 05-05-2021 15:22 Payload/sample.app/Data/Managed/
2960 05-05-2021 15:22 Payload/sample.app/Data/Managed/TypesInScenes.xml
0 05-05-2021 15:22 Payload/sample.app/Data/Managed/Resources/
337563 05-05-2021 15:22 Payload/sample.app/Data/Managed/Resources/mscorlib.dll-resources.dat
9436 05-05-2021 15:22 Payload/sample.app/Data/Managed/UnityLinkerToEditorData.json
0 05-05-2021 15:22 Payload/sample.app/Data/Managed/mono/
0 05-05-2021 15:22 Payload/sample.app/Data/Managed/mono/4.0/
33648 05-05-2021 15:22 Payload/sample.app/Data/Managed/mono/4.0/machine.config
68617 05-05-2021 15:22 Payload/sample.app/Data/Managed/EditorToUnityLinkerData.json
1324 05-05-2021 15:22 Payload/sample.app/Data/Managed/response.rsp
0 05-05-2021 15:22 Payload/sample.app/Data/Managed/Metadata/
1713204 05-05-2021 15:22 Payload/sample.app/Data/Managed/Metadata/global-metadata.dat
40324 05-05-2021 15:22 Payload/sample.app/Data/globalgamemanagers
69 05-05-2021 15:22 Payload/sample.app/Data/boot.config
12 05-05-2021 15:22 Payload/sample.app/Data/RuntimeInitializeOnLoads.json
0 05-05-2021 15:22 Payload/sample.app/Data/Resources/
420300 05-05-2021 15:22 Payload/sample.app/Data/Resources/unity_builtin_extra
6402896 05-05-2021 15:22 Payload/sample.app/Data/unity default resources
2442 05-05-2021 15:22 Payload/sample.app/Data/ScriptingAssemblies.json
6752 05-05-2021 15:22 Payload/sample.app/Data/sharedassets0.assets
6168 05-05-2021 15:22 Payload/sample.app/Data/level0
0 05-05-2021 15:22 Payload/sample.app/Data/Raw/
1403 05-05-2021 15:22 Payload/sample.app/Data/Raw/sample.html
10836 05-05-2021 15:22 Payload/sample.app/Data/Raw/sample.jpg
466 05-05-2021 15:22 Payload/sample.app/Data/Raw/sample.js
62568 05-05-2021 15:22 Payload/sample.app/Data/globalgamemanagers.assets
3664 05-05-2021 15:22 Payload/sample.app/Info.plist
8 05-05-2021 15:22 Payload/sample.app/PkgInfo
--------- -------
24525749 56 files
Issue fixed. Thanks for all your help @KojiNakamaru :)
ERROR ITMS-90432: "Invalid Swift Support. The file testing.app/Frameworks/WebViewWithUIWebView.mm, testing.app/Frameworks/WebView.mm doesn’t have the correct file type for this location. Ensure you’re using the correct file, rebuild your app using the current public (GM) version of Xcode, and resubmit it."