WebEngage / react-native-webengage

WebEngage React Native SDK
MIT License
8 stars 14 forks source link

`WebEngageAppEx` does not specify a Swift version and none of the targets (`NotificationViewController`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod. #63

Open imanshul opened 8 months ago

imanshul commented 8 months ago

WebEngageAppEx does not specify a Swift version and none of the targets (NotificationViewController) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.

Installing WebEngageAppEx 1.1.1 (was 1.0.3) Installing WebEngageBannerPush 1.1.1 (was 1.0.3)

"react-native-webengage": "^1.5.0",

BhaveshWebEngage commented 8 months ago

@imanshul

Thank you for bringing this to our attention. We understand the importance of specifying the Swift version, and we appreciate your patience as we address this issue.

At present, our focus is on ensuring compatibility with older iOS versions to accommodate a wider range of users. This is why we haven't specified a Swift version explicitly. However, we acknowledge the importance of staying updated with the latest Swift versions for enhanced performance and compatibility.

Our library currently works seamlessly with all the latest Swift versions, ensuring that users leveraging the newest language features can still benefit from our solution.

Rest assured, we are actively working on upgrading our support to Swift 5 as the base version. This will not only ensure compatibility with upcoming iOS releases but also leverage the latest language features for improved performance and stability.

Your feedback is invaluable to us, and we are committed to delivering the best possible experience for our users. Please feel free to reach out if you have any further questions or concerns.

Thank you again for bringing this to our attention.

imanshul commented 8 months ago
Screenshot 2024-02-12 at 4 21 49 PM

Hey, can you please at least provide a solution in order for me to continue, instead of closing the ticket without any solution.

@BhaveshWebEngage

BhaveshWebEngage commented 8 months ago

Thank you for reaching out, and I apologize for any inconvenience you've experienced. We're committed to resolving this issue for you as swiftly as possible.

While we haven't encountered this issue ourselves, we understand its importance and would like to assist you in resolving it promptly. In order to better understand the problem and provide an effective solution, could you please provide us with the following details:

The version of CocoaPods installed on your system. Any relevant details about your project setup or configuration. Additionally, if you could provide screenshots or whole pod install prompt, it would greatly assist us in diagnosing the issue accurately.

Rest assured, we'll do our utmost to assist you in resolving this issue and ensure smooth integration with our library. Your cooperation and patience are greatly appreciated.

Thank you for bringing this to our attention, and we look forward to hearing back from you soon.

imanshul commented 8 months ago

"react-native": "0.73.1", "react-native-webengage": "^1.5.0",

This issue happened when i did pod update without increasing library version previous pod versions were 1.0.3 (WebEngageAppEx, WebEngageBannerPush) I'm facing this when upgraded from 1.0.3 to 1.1.1 with pod update command

Here is the pod install logs

RNFBAnalytics: Using default Firebase/Analytics with Ad Ids. May require App Tracking Transparency. Not allowed for Kids apps.
RNFBAnalytics: You may set variable `$RNFirebaseAnalyticsWithoutAdIdSupport=true` in Podfile to use analytics without ad ids.
Using firebase.json from '/Users/anshulthakur/WebstormProjects/13k_RNApp/App13Karat/firebase.json'
Adding a custom script phase for Pod RNFBApp: [RNFB] Core Configuration
Adding a custom script phase for Pod RNFBCrashlytics: [RNFB] Crashlytics Configuration
[Lottie React Native] Using install_modules_dependencies
react-native-appsflyer: Using default AppsFlyerFramework. You may require App Tracking Transparency. Not allowed for Kids apps.
react-native-appsflyer: You may set variable `$RNAppsFlyerStrictMode=true` in Podfile to use strict mode for kids apps.
Auto-linking React Native modules for target `App13Karat`: BVLinearGradient, CodePush, RNCAsyncStorage, RNCClipboard, RNDeviceInfo, RNFBAnalytics, RNFBApp, RNFBCrashlytics, RNFBMessaging, RNFreshchatSDK, RNNotifee, RNPermissions, RNReanimated, RNSVG, RNScreens, RNShare, lottie-react-native, react-native-appsflyer, react-native-biometrics, react-native-blob-util, react-native-config, react-native-date-picker, react-native-document-picker, react-native-flyy, react-native-image-picker, react-native-mmkv, react-native-otp-verify, react-native-pager-view, react-native-render-html, react-native-safe-area-context, react-native-webengage, and react-native-webview
Framework build type is static framework
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
[Codegen] generating an empty RCTThirdPartyFabricComponentsProvider
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
[Codegen] Found FBReactNativeSpec
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
RNFBAnalytics: Using default Firebase/Analytics with Ad Ids. May require App Tracking Transparency. Not allowed for Kids apps.
RNFBAnalytics: You may set variable `$RNFirebaseAnalyticsWithoutAdIdSupport=true` in Podfile to use analytics without ad ids.
RNFBAnalytics: Using overridden static_framework value of 'true'
RNFBApp: Using overridden static_framework value of 'true'
RNFBCrashlytics: Using overridden static_framework value of 'true'
RNFBMessaging: Using overridden static_framework value of 'true'
[Codegen] Found rncore
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Fetching podspec for `hermes-engine` from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`
[Hermes] Using release tarball from URL: https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.73.1/react-native-artifacts-0.73.1-hermes-ios-debug.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 16.2M  100 16.2M    0     0  1003k      0  0:00:16  0:00:16 --:--:-- 2316k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12.3M  100 12.3M    0     0  1724k      0  0:00:07  0:00:07 --:--:-- 2644k
[Lottie React Native] Using install_modules_dependencies
react-native-appsflyer: Using default AppsFlyerFramework. You may require App Tracking Transparency. Not allowed for Kids apps.
react-native-appsflyer: You may set variable `$RNAppsFlyerStrictMode=true` in Podfile to use strict mode for kids apps.
Downloading dependencies
Installing AppsFlyerFramework (6.12.2)
Installing BVLinearGradient (2.8.3)
Installing Base64 (1.1.2)
Installing CodePush (8.2.1)
Installing DoubleConversion (1.1.6)
Installing FBLazyVector (0.73.1)
Installing FBReactNativeSpec (0.73.1)
Installing Firebase (10.20.0)
Installing FirebaseAnalytics (10.20.0)
Installing FirebaseCore (10.20.0)
Installing FirebaseCoreExtension (10.20.0)
Installing FirebaseCoreInternal (10.21.0)
Installing FirebaseCrashlytics (10.20.0)
Installing FirebaseInstallations (10.21.0)
Installing FirebaseMessaging (10.20.0)
Installing FirebaseSessions (10.21.0)
Installing FlyyFramework (1.3.73)
Installing FreshchatSDK (5.9.2)
Installing GoogleAppMeasurement (10.20.0)
Installing GoogleDataTransport (9.3.0)
Installing GoogleUtilities (7.12.0)
Installing JWT (3.0.0-beta.14)
Installing MMKV (1.3.3)
Installing MMKVCore (1.3.3)
Installing PromisesObjC (2.3.1)
Installing PromisesSwift (2.3.1)
Installing RCT-Folly (2022.05.16.00)
Installing RCTRequired (0.73.1)
Installing RCTTypeSafety (0.73.1)
Installing RNCAsyncStorage (1.21.0)
Installing RNCClipboard (1.13.2)
Installing RNDeviceInfo (10.12.0)
Installing RNFBAnalytics (18.8.0)
Installing RNFBApp (18.8.0)
Installing RNFBCrashlytics (18.8.0)
Installing RNFBMessaging (18.8.0)
Installing RNFreshchatSDK (4.4.4)
Installing RNNotifee (7.8.2)
Installing RNPermissions (4.1.0)
Installing RNReanimated (3.6.2)
Installing RNSVG (14.1.0)
Installing RNScreens (3.29.0)
Installing RNShare (10.0.2)
Installing React (0.73.1)
Installing React-Codegen (0.73.1)
Installing React-Core (0.73.1)
Installing React-CoreModules (0.73.1)
Installing React-Fabric (0.73.1)
Installing React-FabricImage (0.73.1)
Installing React-ImageManager (0.73.1)
Installing React-Mapbuffer (0.73.1)
Installing React-NativeModulesApple (0.73.1)
Installing React-RCTActionSheet (0.73.1)
Installing React-RCTAnimation (0.73.1)
Installing React-RCTAppDelegate (0.73.1)
Installing React-RCTBlob (0.73.1)
Installing React-RCTFabric (0.73.1)
Installing React-RCTImage (0.73.1)
Installing React-RCTLinking (0.73.1)
Installing React-RCTNetwork (0.73.1)
Installing React-RCTSettings (0.73.1)
Installing React-RCTText (0.73.1)
Installing React-RCTVibration (0.73.1)
Installing React-callinvoker (0.73.1)
Installing React-cxxreact (0.73.1)
Installing React-debug (0.73.1)
Installing React-graphics (0.73.1)
Installing React-hermes (0.73.1)
Installing React-jserrorhandler (0.73.1)
Installing React-jsi (0.73.1)
Installing React-jsiexecutor (0.73.1)
Installing React-jsinspector (0.73.1)
Installing React-logger (0.73.1)
Installing React-nativeconfig (0.73.1)
Installing React-perflogger (0.73.1)
Installing React-rendererdebug (0.73.1)
Installing React-rncore (0.73.1)
Installing React-runtimeexecutor (0.73.1)
Installing React-runtimescheduler (0.73.1)
Installing React-utils (0.73.1)
Installing ReactCommon (0.73.1)
Installing SSZipArchive (2.2.3)
Installing SocketRocket (0.6.1)
Installing WebEngage (6.6.1)
Installing WebEngageAppEx (1.1.1)
Installing WebEngageBannerPush (1.1.1)
Installing Yoga (1.14.0)
Installing boost (1.83.0)
Installing fmt (6.2.1)
Installing glog (0.3.5)
Installing hermes-engine (0.73.1)
Installing libevent (2.1.12)
Installing lottie-ios (4.4.0)
Installing lottie-react-native (6.6.0)
Installing nanopb (2.30909.1)
Installing react-native-appsflyer (6.12.2)
Installing react-native-biometrics (3.0.1)
Installing react-native-blob-util (0.19.6)
Installing react-native-config (1.5.1)
Installing react-native-date-picker (4.3.5)
Installing react-native-document-picker (9.1.0)
Installing react-native-flyy (1.4.43)
Installing react-native-image-picker (7.1.0)
Installing react-native-mmkv (2.11.0)
Installing react-native-otp-verify (1.1.6)
Installing react-native-pager-view (6.2.3)
Installing react-native-render-html (6.3.4)
Installing react-native-safe-area-context (4.8.2)
Installing react-native-webengage (1.5.0)
Installing react-native-webview (13.6.4)
[!] Unable to determine Swift version for the following pods:

- `WebEngageAppEx` does not specify a Swift version and none of the targets (`NotificationViewController`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
BhaveshWebEngage commented 8 months ago

Thank you for your patience and for reaching out to us regarding this issue.

To address the warning you're encountering, we recommend adding the following line at the top of your Podfile:

ENV['SWIFT_VERSION'] = '5'

Adding above line will explicitly specify the Swift version as 5 for your project, resolving the warning for now.

We understand the importance of providing a permanent fix, and as mentioned earlier, we are actively working on incorporating Swift 5 as the base support in our library. This fix will be included in an upcoming update.

In the meantime, adding the line to your Podfile should alleviate the warning and ensure smooth integration with our library.

Thank you for your understanding and cooperation. If you have any further questions or concerns, please don't hesitate to reach out.

imanshul commented 8 months ago

Yeah, for now i've used this as a fix, but going forward i don't want to add any fix versions in my podfile. Please do mention the version once it is live.

BhaveshWebEngage commented 8 months ago

Thank you for your feedback. We'll ensure the Swift version is specified in the library once the update is live. Your patience is appreciated. If you have further questions, feel free to reach out.