Skip to content

BuildPostProcessor.cs conflicts with edm4u #442

@PaXLiCh

Description

@PaXLiCh

Because old 2.x version of plugin breaks the builds targeted to android sdk 31 and 32 and not allows to us upload app to play market
We moved to 3.x beta versions of this plugin. But still have a lot of problems.
We trying to fix the problem with missing "Push notification" capability which required for publishing to appstore to avoid ITMS-90078: Missing Push Notification Entitlement.
And we updated core,android,ios packages to 3.0.0-beta5
and got this during ios build:

iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.

After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.

pod install output:

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "OneSignalXCFramework":
  In Podfile:
    OneSignalXCFramework (= 3.10.0)

    OneSignalXCFramework (~> 3.8.1)

None of your spec sources contain a spec satisfying the dependencies: `OneSignalXCFramework (= 3.10.0), OneSignalXCFramework (~> 3.8.1)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.



[!] There are duplicate dependencies on `OneSignalXCFramework` in `Podfile`:

- OneSignalXCFramework (= 3.10.0)
- OneSignalXCFramework (~> 3.8.1)



pod repo update output:

Updating spec repo `cocoapods`
  $ /usr/bin/git -C .cocoapods/repos/cocoapods fetch origin --progress
  $ /usr/bin/git -C .cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
  master
  $ /usr/bin/git -C .cocoapods/repos/cocoapods reset --hard origin/master
  HEAD is now at a1fea5d1291b [Add] SmartechNudges 8.5.15


  remote: Enumerating objects: 45, done.        
  remote: Counting objects:   2% (1/45)        
  remote: Counting objects:   4% (2/45)        
  remote: Counting objects:   6% (3/45)        
  remote: Counting objects:   8% (4/45)        
  remote: Counting objects:  11% (5/45)        
  remote: Counting objects:  13% (6/45)        
  remote: Counting objects:  15% (7/45)        
  remote: Counting objects:  17% (8/45)        
  remote: Counting objects:  20% (9/45)        
  remote: Counting objects:  22% (10/45)        
  remote: Counting objects:  24% (11/45)        
  remote: Counting objects:  26% (12/45)        
  remote: Counting objects:  28% (13/45)        
  remote: Counting objects:  31% (14/45)        
  remote: Counting objects:  33% (15/45)        
  remote: Counting objects:  35% (16/45)        
  remote: Counting objects:  37% (17/45)        
  remote: Counting objects:  40% (18/45)        
  remote: Counting objects:  42% (19/45)        
  remote: Counting objects:  44% (20/45)        
  remote: Counting objects:  46% (21/45)        
  remote: Counting objects:  48% (22/45)        
  remote: Counting objects:  51% (23/45)        
  remote: Counting objects:  53% (24/45)        
  remote: Counting objects:  55% (25/45)        
  remote: Counting objects:  57% (26/45)        
  remote: Counting objects:  60% (27/45)        
  remote: Counting objects:  62% (28/45)        
  remote: Counting objects:  64% (29/45)        
  remote: Counting objects:  66% (30/45)        
  remote: Counting objects:  68% (31/45)        
  remote: Counting objects:  71% (32/45)        
  remote: Counting objects:  73% (33/45)        
  remote: Counting objects:  75% (34/45)        
  remote: Counting objects:  77% (35/45)        
  remote: Counting objects:  80% (36/45)        
  remote: Counting objects:  82% (37/45)        
  remote: Counting objects:  84% (38/45)        
  remote: Counting objects:  86% (39/45)        
  remote: Counting objects:  88% (40/45)        
  remote: Counting objects:  91% (41/45)        
  remote: Counting objects:  93% (42/45)        
  remote: Counting objects:  95% (43/45)        
  remote: Counting objects:  97% (44/45)        
  remote: Counting objects: 100% (45/45)        
  remote: Counting objects: 100% (45/45), done.        
  remote: Compressing objects:   2% (1/44)        
  remote: Compressing objects:   4% (2/44)        
  remote: Compressing objects:   6% (3/44)        
  remote: Compressing objects:   9% (4/44)        
  remote: Compressing objects:  11% (5/44)        
  remote: Compressing objects:  13% (6/44)        
  remote: Compressing objects:  15% (7/44)        
  remote: Compressing objects:  18% (8/44)        
  remote: Compressing objects:  20% (9/44)        
  remote: Compressing objects:  22% (10/44)        
  remote: Compressing objects:  25% (11/44)        
  remote: Compressing objects:  27% (12/44)        
  remote: Compressing objects:  29% (13/44)        
  remote: Compressing objects:  31% (14/44)        
  remote: Compressing objects:  34% (15/44)        
  remote: Compressing objects:  36% (16/44)        
  remote: Compressing objects:  38% (17/44)        
  remote: Compressing objects:  40% (18/44)        
  remote: Compressing objects:  43% (19/44)        
  remote: Compressing objects:  45% (20/44)        
  remote: Compressing objects:  47% (21/44)        
  remote: Compressing objects:  50% (22/44)        
  remote: Compressing objects:  52% (23/44)        
  remote: Compressing objects:  54% (24/44)        
  remote: Compressing objects:  56% (25/44)        
  remote: Compressing objects:  59% (26/44)        
  remote: Compressing objects:  61% (27/44)        
  remote: Compressing objects:  63% (28/44)        
  remote: Compressing objects:  65% (29/44)        
  remote: Compressing objects:  68% (30/44)        
  remote: Compressing objects:  70% (31/44)        
  remote: Compressing objects:  72% (32/44)        
  remote: Compressing objects:  75% (33/44)        
  remote: Compressing objects:  77% (34/44)        
  remote: Compressing objects:  79% (35/44)        
  remote: Compressing objects:  81% (36/44)        
  remote: Compressing objects:  84% (37/44)        
  remote: Compressing objects:  86% (38/44)        
  remote: Compressing objects:  88% (39/44)        
  remote: Compressing objects:  90% (40/44)        
  remote: Compressing objects:  93% (41/44)        
  remote: Compressing objects:  95% (42/44)        
  remote: Compressing objects:  97% (43/44)        
  remote: Compressing objects: 100% (44/44)        
  remote: Compressing objects: 100% (44/44), done.        
  remote: Total 45 (delta 9), reused 0 (delta 0), pack-reused 0        
  From https://github.com/CocoaPods/Specs
     c48ed83ed72f..a1fea5d1291b  master     -> origin/master

UnityEngine.Debug:LogError (object)
Google.Logger:Log (string,Google.LogLevel) (at Z:/tmp/tmp.EFMVSxwBlR/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/Logger.cs:136)
Google.IOSResolver:Log (string,bool,Google.LogLevel) (at Z:/tmp/tmp.YqR8uEYCYX/third_party/unity/unity_jar_resolver/source/IOSResolver/src/IOSResolver.cs:1171)
Google.IOSResolver:OnPostProcessInstallPods (UnityEditor.BuildTarget,string) (at Z:/tmp/tmp.YqR8uEYCYX/third_party/unity/unity_jar_resolver/source/IOSResolver/src/IOSResolver.cs:2580)
UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions)

commit 82f66e6
In OneSignalIOSDependencies.xml
<iosPod name="OneSignalXCFramework" version="3.10.0" addToAllTargets="true" />
In BuildPostProcessor.cs we found this line
podfile += $"target '{ServiceExtensionTargetName}' do\n pod 'OneSignalXCFramework', '~> 3.8.1'\nend\n";

just...
facepalm.jpg

This issue may be catched just with simple building of xcode project from unity.
Please, watch carefully what you comiting and publishing!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions