Ziggeo / ReactNativeSDK

React Native SDK
Apache License 2.0
7 stars 6 forks source link

Ziggeo.playVideo(VIDEO_TOKEN) not working on ios #92

Closed bobananto24 closed 3 months ago

bobananto24 commented 2 years ago

When running Ziggeo.playVideo(VIDEO_TOKEN) in android works perfectly fine but when i try to run in ios there was no effect not even an error

katolykdev commented 2 years ago

Hi, @bobananto24 You installed latest ziggeo library? "react-native-ziggeo-library": "1.6.6", I tried using this version, and it is working on my side.

If you installed latest library, could you send me package.json and Podfile?

bobananto24 commented 2 years ago

@katolykdev I was using "react-native-ziggeo-library": "1.6.3", Now I have updated to "react-native-ziggeo-library": "1.6.6", and after the update I couldn't build the app. Throwing this error: The following build commands failed: CompileC /Users/boban24/Library/Developer/Xcode/DerivedData/{PROJECT_NAME}/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ZiggeoRN.build/Objects-normal/x86_64/RCTZiggeoRecorder.o /Users/boban24/Documents/GitHub/{name}/node_modules/react-native-ziggeo-library/ios/Recorder/RCTZiggeoRecorder.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'ZiggeoRN' from project 'Pods') (1 failure)

bobananto24 commented 2 years ago

Podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '12.0'

target 'Project' do pod 'iOS-Client-SDK', :git => 'https://github.com/Ziggeo/iOS-Client-SDK.git' config = use_native_modules! pod 'react-native-image-crop-tools', :path => '../node_modules/react-native-image-crop-tools' use_react_native!( :path => config[:reactNativePath],

to enable hermes on iOS, change false to true and then install pods

:hermes_enabled => false

)

pod 'react-native-onesignal', :path => '../node_modules/react-native-onesignal'

target 'ProjectTests' do inherit! :complete

Pods for testing

end

post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' end end

react_native_post_install(installer)

end

end

target 'OneSignalNotificationServiceExtension' do pod 'OneSignal', '>= 3.0', '< 4.0' end

Package.json

{ "name": "Project", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint .", "pod": "cd ios && pod install && cd .." }, "dependencies": { "@ptomasroos/react-native-multi-slider": "^2.2.2", "@react-native-async-storage/async-storage": "^1.15.2", "@react-native-community/blur": "^3.6.0", "@react-native-community/checkbox": "^0.5.7", "@react-native-seoul/masonry-list": "^1.0.7", "@react-navigation/bottom-tabs": "^5.11.8", "@react-navigation/native": "^5.9.3", "@react-navigation/stack": "^5.14.3", "axios": "^0.21.1", "formik": "^2.2.6", "lodash.filter": "^4.6.0", "moment": "^2.29.1", "quickblox": "^2.13.10", "quickblox-react-native-sdk": "^0.5.18-beta", "react": "17.0.1", "react-native": "0.64.2", "react-native-billing": "^3.0.0", "react-native-check-version": "^1.0.9", "react-native-date-picker": "^3.2.10", "react-native-exception-handler": "^2.10.10", "react-native-fast-image": "^8.3.4", "react-native-gesture-handler": "^1.10.3", "react-native-gif-search": "^1.3.2", "react-native-hyperlink": "0.0.19", "react-native-iap": "^8.0.0-rc.6", "react-native-image-crop-picker": "^0.36.2", "react-native-image-crop-tools": "^1.3.6", "react-native-image-pan-zoom": "^2.1.12", "react-native-image-picker": "^3.3.2", "react-native-localize": "^2.1.5", "react-native-onesignal": "^4.1.1", "react-native-push-notification": "^7.3.1", "react-native-rename": "^2.9.0", "react-native-responsive-fontsize": "^0.5.0", "react-native-safe-area-context": "^3.2.0", "react-native-screens": "^2.18.1", "react-native-simple-toast": "^1.1.3", "react-native-splash-screen": "^3.2.0", "react-native-version-check": "^3.4.2", "react-native-ziggeo-library": "1.6.6", "yup": "^0.32.9" }, "devDependencies": { "@babel/core": "7.13.10", "@babel/runtime": "7.13.10", "@react-native-community/eslint-config": "2.0.0", "babel-jest": "26.6.3", "eslint": "7.14.0", "jest": "26.6.3", "metro-react-native-babel-preset": "0.64.0", "react-test-renderer": "17.0.1" }, "jest": { "preset": "react-native" } }

katolykdev commented 2 years ago

pod deintegrate pod install After that, please clean the project and rebuild.

bobananto24 commented 2 years ago

pod deintegrate pod install After that, please clean the project and rebuild.

still the same error tried: pod deintegrate pod install xcodebuild clean

katolykdev commented 2 years ago

https://mega.nz/file/csgDyT4L#jL0sAbYDAEqEvp8ecaYTKVvsGN5Qf9pdEICvDz5YMQk I used the package and podfile you sent. But I can build it. Could you retry on this project?

bobananto24 commented 2 years ago

With "react-native-ziggeo-library": "^1.6.3", i can build the app but when i update to "react-native-ziggeo-library": "^1.6.6", i couldn't build. @katolykdev What could be the reason for this

katolykdev commented 1 year ago

Hello, @bobananto24 Please check on current version 1.6.26.