anatoly-spb opened a new issue, #1289:
URL: https://github.com/apache/cordova-ios/issues/1289

   Thank you the great tool such as Cordova!
   
   I have Ionic6 project powered by Cordova and get **#import 
<OneSignal/OneSignal.h>file not found** during build. The project is similar to 
https://github.com/anatoly-spb/ionic6-hello (config.xml, package.json and so on 
are the same), there is only one difference build.json file
   
   When I build https://github.com/anatoly-spb/ionic6-hello without build.json, 
I see in the build log:
   
   ```
   ...
   Copied 
/Users/jenkins/jenkins_slave/workspace/ionic6-hello-build/build/platforms/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework/ios-arm64_i386_x86_64-simulator
 to 
/Users/jenkins/Library/Developer/Xcode/DerivedData/ionic6-hello-cmefghronosiomgsqfeqigwbydny/Build/Products/Release-iphonesimulator/XCFrameworkIntermediates/OneSignalXCFramework
   Selected xcframework slice ios-arm64_i386_x86_64-simulator
   ...
   ```
   
   When I build my project with build.json file, I does not see the line above 
and as the result I get:
   ```
   onesignal-cordova-plugin/OneSignalPush.h:32:9: fatal error: 
'OneSignal/OneSignal.h' file not found
   #import <OneSignal/OneSignal.h>
           ^~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.
   ```
   
   My ionic info:
   ```
   Ionic:
   
      Ionic CLI                     : 6.20.8 
(/Users/jenkins/jenkins_slave/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/node16.19.0/lib/node_modules/@ionic/cli)
      Ionic Framework               : @ionic/angular 6.5.4
      @angular-devkit/build-angular : 15.1.6
      @angular-devkit/schematics    : 15.1.6
      @angular/cli                  : 15.1.6
      @ionic/angular-toolkit        : 8.0.0
   
   Cordova:
   
      Cordova CLI       : 11.1.0
      Cordova Platforms : ios 6.2.0
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, 
cordova-plugin-ionic-webview 5.0.0, (and 6 other plugins)
   
   Utility:
   
      cordova-res : 0.15.4
      native-run  : 1.7.1
   
   System:
   
      ios-deploy : 1.11.4
      ios-sim    : 8.0.2
      NodeJS     : v16.19.0 
(/Users/jenkins/jenkins_slave/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/node16.19.0/bin/node)
      npm        : 8.19.3
      OS         : macOS Monterey
      Xcode      : Xcode 14.2 Build version 14C18
   ```
   
   Could you please point what can be wrong with build.json?
   
   My build.json:
   ```
   {
       "ios": {
                "debug": {
                        "codeSignIdentity": "iPhone Developer",
                        "provisioningProfile": "xxx",
                        "developmentTeam": "yyy",
                        "packageType": "development"
                },
                "release": {
                        "codeSignIdentity": "iPhone Distribution",
                        "provisioningProfile": "zzz",
                        "developmentTeam": "yyy",
                        "packageType": "app-store"
                }
       }
   }
   ```
   
   Thank you for any hints.
   
   BR,
   Anatoly
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to