Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all 16907 articles
Browse latest View live

React Native ios builds failing suddenly

$
0
0

I've been working on a react native project for about a year now and suddenly my projects are failing. I've been trying to solve this for two days now, I'm really at a loss. I've cleaned Cache, cleared derived data, removed node_modules, pod deintegrate, etc etc. Anyone have advice here? Below is the output of react-native info, and below that is the error log from Xcode:

    OS: macOS 11.2    CPU: (8) x64 Apple M1    Memory: 89.19 MB / 16.00 GB    Shell: 3.2.57 - /bin/bash  Binaries:    Node: 15.12.0 - /usr/local/bin/node    Yarn: 1.22.10 - /usr/local/bin/yarn    npm: 7.6.3 - /usr/local/bin/npm    Watchman: 4.9.0 - /usr/local/bin/watchman  Managers:    CocoaPods: 1.10.1 - /Users/ptenteromano/.rvm/rubies/ruby-2.4.1/bin/pod  SDKs:    iOS SDK:      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4    Android SDK:      API Levels: 29      Build Tools: 28.0.3, 29.0.2, 30.0.3, 31.0.0      System Images: android-29 | Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom      Android NDK: Not Found  IDEs:    Android Studio: 4.1 AI-201.8743.12.41.7042882    Xcode: 12.5/12E262 - /usr/bin/xcodebuild  Languages:    Java: 11.0.10 - /Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home/bin/javac  npmPackages:    @react-native-community/cli: Not Found    react: 17.0.1 => 17.0.1     react-native: 0.64.1 => 0.64.1     react-native-macos: Not Found  npmGlobalPackages:    *react-native*: Not Found

This is the error log from Xcode:

Showing All Errors OnlyBuild target react-native-safe-area-context of project Pods with configuration DebugLd /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/react-native-safe-area-context/react_native_safe_area_context.framework/react_native_safe_area_context normal (in target 'react-native-safe-area-context' from project 'Pods')    cd /Users/ptenteromano/Code/surfoto/ios/Pods    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios12.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -L/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/react-native-safe-area-context -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/react-native-safe-area-context -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/DoubleConversion -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/Folly -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/RCTTypeSafety -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-Core -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTAnimation -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTBlob -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTImage -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTLinking -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTNetwork -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTSettings -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTText -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTVibration -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-cxxreact -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-jsi -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-jsiexecutor -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-jsinspector -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/ReactCommon -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/Yoga -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/glog -filelist /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-safe-area-context.build/Objects-normal/x86_64/react_native_safe_area_context.LinkFileList -install_name @rpath/react_native_safe_area_context.framework/react_native_safe_area_context -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-safe-area-context.build/Objects-normal/x86_64/react_native_safe_area_context_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Foundation -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-safe-area-context.build/Objects-normal/x86_64/react_native_safe_area_context_dependency_info.dat -o /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/react-native-safe-area-context/react_native_safe_area_context.framework/react_native_safe_area_contextUndefined symbols for architecture x86_64:"_RCTConvertMultiEnumValue", referenced from:+[RCTConvert(RNCSafeAreaView) RNCSafeAreaViewEdges:] in RNCSafeAreaViewEdges.o+[RCTConvert(RNCSafeAreaView) RNCSafeAreaViewMode:] in RNCSafeAreaViewMode.o"__RCTNotImplementedException", referenced from:      -[RNCSafeAreaView initWithCoder:] in RNCSafeAreaView.o      -[RNCSafeAreaView initWithFrame:] in RNCSafeAreaView.o"__RCTAssertFormat", referenced from:      -[RNCSafeAreaShadowView setLocalData:] in RNCSafeAreaShadowView.o"_OBJC_CLASS_$_RCTView", referenced from:      _OBJC_CLASS_$_RNCSafeAreaProvider in RNCSafeAreaProvider.o      _OBJC_CLASS_$_RNCSafeAreaView in RNCSafeAreaView.o"_OBJC_CLASS_$_RCTViewManager", referenced from:      _OBJC_CLASS_$_RNCSafeAreaProviderManager in RNCSafeAreaProviderManager.o      _OBJC_CLASS_$_RNCSafeAreaViewManager in RNCSafeAreaViewManager.o"_OBJC_METACLASS_$_RCTShadowView", referenced from:      _OBJC_METACLASS_$_RNCSafeAreaShadowView in RNCSafeAreaShadowView.o"_OBJC_METACLASS_$_RCTViewManager", referenced from:      _OBJC_METACLASS_$_RNCSafeAreaProviderManager in RNCSafeAreaProviderManager.o      _OBJC_METACLASS_$_RNCSafeAreaViewManager in RNCSafeAreaViewManager.o"_OBJC_CLASS_$_RCTShadowView", referenced from:      _OBJC_CLASS_$_RNCSafeAreaShadowView in RNCSafeAreaShadowView.o"_OBJC_CLASS_$_RCTConvert", referenced from:      __OBJC_$_CATEGORY_RCTConvert_$_RNCSafeAreaView in RNCSafeAreaViewEdges.o      __OBJC_$_CATEGORY_RCTConvert_$_RNCSafeAreaView in RNCSafeAreaViewMode.o"_RCTRegisterModule", referenced from:+[RNCSafeAreaProviderManager load] in RNCSafeAreaProviderManager.o+[RNCSafeAreaViewManager load] in RNCSafeAreaViewManager.o"_OBJC_METACLASS_$_RCTView", referenced from:      _OBJC_METACLASS_$_RNCSafeAreaProvider in RNCSafeAreaProvider.o      _OBJC_METACLASS_$_RNCSafeAreaView in RNCSafeAreaView.o"_RCTScreenScale", referenced from:      -[RNCSafeAreaProvider invalidateSafeAreaInsets] in RNCSafeAreaProvider.o      -[RNCSafeAreaView invalidateSafeAreaInsets] in RNCSafeAreaView.old: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)Build target react-native-maps of project Pods with configuration DebugLd /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/react-native-maps/react_native_maps.framework/react_native_maps normal (in target 'react-native-maps' from project 'Pods')    cd /Users/ptenteromano/Code/surfoto/ios/Pods    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios12.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -L/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/react-native-maps -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/react-native-maps -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/DoubleConversion -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/Folly -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/RCTTypeSafety -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-Core -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTAnimation -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTBlob -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTImage -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTLinking -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTNetwork -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTSettings -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTText -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTVibration -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-cxxreact -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-jsi -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-jsiexecutor -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-jsinspector -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/ReactCommon -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/Yoga -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/glog -filelist /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-maps.build/Objects-normal/x86_64/react_native_maps.LinkFileList -install_name @rpath/react_native_maps.framework/react_native_maps -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-maps.build/Objects-normal/x86_64/react_native_maps_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Foundation -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-maps.build/Objects-normal/x86_64/react_native_maps_dependency_info.dat -o /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/react-native-maps/react_native_maps.framework/react_native_mapsUndefined symbols for architecture x86_64:"_RCTScreenScale", referenced from:      -[AIRMapMarker setImageSrc:] in AIRMapMarker.o      -[AIRMapOverlay setImageSrc:] in AIRMapOverlay.o"_RCTConvertArrayValue", referenced from:+[RCTConvert(AirMap) AIRMapCoordinateArray:] in RCTConvert+AirMap.o+[RCTConvert(AirMap) AIRMapCoordinateArrayArray:] in RCTConvert+AirMap.o"_OBJC_CLASS_$_RCTConvert", referenced from:      objc-class-ref in AIRMapManager.o      objc-class-ref in AIRMapMarker.o      objc-class-ref in AIRMapOverlay.o      objc-class-ref in RCTConvert+AirMap.o      __OBJC_$_CATEGORY_RCTConvert_$_AirMap in RCTConvert+AirMap.o"_RCTConvertEnumValue", referenced from:+[RCTConvert(AirMap) MKMapType:] in RCTConvert+AirMap.o"__RCTLogNativeInternal", referenced from:      ___52-[AIRMapManager getMapBoundaries:resolver:rejecter:]_block_invoke in AIRMapManager.o      ___34-[AIRMapManager setCamera:camera:]_block_invoke in AIRMapManager.o      ___55-[AIRMapManager animateCamera:withCamera:withDuration:]_block_invoke in AIRMapManager.o      ___83-[AIRMapManager animateToNavigation:withRegion:withBearing:withAngle:withDuration:]_block_invoke in AIRMapManager.o      ___57-[AIRMapManager animateToRegion:withRegion:withDuration:]_block_invoke in AIRMapManager.o      ___61-[AIRMapManager animateToCoordinate:withRegion:withDuration:]_block_invoke in AIRMapManager.o      ___62-[AIRMapManager animateToViewingAngle:withAngle:withDuration:]_block_invoke in AIRMapManager.o      ..."_OBJC_CLASS_$_RCTViewManager", referenced from:      _OBJC_CLASS_$_AIRMapCalloutManager in AIRMapCalloutManager.o      _OBJC_CLASS_$_AIRMapCalloutSubviewManager in AIRMapCalloutSubviewManager.o      _OBJC_CLASS_$_AIRMapCircleManager in AIRMapCircleManager.o      _OBJC_CLASS_$_AIRMapLocalTileManager in AIRMapLocalTileManager.o      _OBJC_CLASS_$_AIRMapManager in AIRMapManager.o      _OBJC_CLASS_$_AIRMapMarkerManager in AIRMapMarkerManager.o      _OBJC_CLASS_$_AIRMapOverlayManager in AIRMapOverlayManager.o      ..."_OBJC_METACLASS_$_RCTViewManager", referenced from:      _OBJC_METACLASS_$_AIRMapCalloutManager in AIRMapCalloutManager.o      _OBJC_METACLASS_$_AIRMapCalloutSubviewManager in AIRMapCalloutSubviewManager.o      _OBJC_METACLASS_$_AIRMapCircleManager in AIRMapCircleManager.o      _OBJC_METACLASS_$_AIRMapLocalTileManager in AIRMapLocalTileManager.o      _OBJC_METACLASS_$_AIRMapManager in AIRMapManager.o      _OBJC_METACLASS_$_AIRMapMarkerManager in AIRMapMarkerManager.o      _OBJC_METACLASS_$_AIRMapOverlayManager in AIRMapOverlayManager.o      ..."_OBJC_METACLASS_$_RCTView", referenced from:      _OBJC_METACLASS_$_AIRMapCallout in AIRMapCallout.o"_RCTRegisterModule", referenced from:+[AIRMapCalloutManager load] in AIRMapCalloutManager.o+[AIRMapCalloutSubviewManager load] in AIRMapCalloutSubviewManager.o+[AIRMapCircleManager load] in AIRMapCircleManager.o+[AIRMapLocalTileManager load] in AIRMapLocalTileManager.o+[AIRMapManager load] in AIRMapManager.o+[AIRMapMarkerManager load] in AIRMapMarkerManager.o+[AIRMapOverlayManager load] in AIRMapOverlayManager.o      ..."_OBJC_CLASS_$_RCTView", referenced from:      _OBJC_CLASS_$_AIRMapCallout in AIRMapCallout.old: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)Build target RNScreens of project Pods with configuration DebugLd /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/RNScreens/RNScreens.framework/RNScreens normal (in target 'RNScreens' from project 'Pods')    cd /Users/ptenteromano/Code/surfoto/ios/Pods    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios12.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -L/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/RNScreens -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/RNScreens -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/DoubleConversion -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/Folly -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/RCTTypeSafety -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-Core -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTAnimation -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTBlob -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTImage -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTLinking -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTNetwork -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTSettings -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTText -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-RCTVibration -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-cxxreact -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-jsi -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-jsiexecutor -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/React-jsinspector -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/ReactCommon -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/Yoga -F/Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/glog -filelist /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNScreens.build/Objects-normal/x86_64/RNScreens.LinkFileList -install_name @rpath/RNScreens.framework/RNScreens -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNScreens.build/Objects-normal/x86_64/RNScreens_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Foundation -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNScreens.build/Objects-normal/x86_64/RNScreens_dependency_info.dat -o /Users/ptenteromano/Library/Developer/Xcode/DerivedData/com.surfoto-erltcbqujwkqrfamxcnqoklzkkht/Build/Products/Debug-iphonesimulator/RNScreens/RNScreens.framework/RNScreensUndefined symbols for architecture x86_64:"_OBJC_CLASS_$_RCTFont", referenced from:      objc-class-ref in RNSScreenStackHeaderConfig.o"_RCTIsMainQueue", referenced from:      -[RNSScreenContainerManager markUpdated:] in RNSScreenContainer.o"__RCTAssertFormat", referenced from:      -[RNSScreenContainerManager markUpdated:] in RNSScreenContainer.o      -[RNSScreenStackView setModalViewControllers:] in RNSScreenStack.o"_OBJC_CLASS_$_RCTRootContentView", referenced from:      objc-class-ref in RNSScreenStack.o"_RCTRegisterModule", referenced from:+[RNSScreenManager load] in RNSScreen.o+[RNSScreenContainerManager load] in RNSScreenContainer.o+[RNSScreenStackManager load] in RNSScreenStack.o+[RNSScreenStackHeaderConfigManager load] in RNSScreenStackHeaderConfig.o+[RNSScreenStackHeaderSubviewManager load] in RNSScreenStackHeaderConfig.o"_OBJC_CLASS_$_RCTConvert", referenced from:      __OBJC_$_CATEGORY_RCTConvert_$_RNSScreen in RNSScreen.o      __OBJC_$_CATEGORY_RCTConvert_$_RNSScreenStackHeader in RNSScreenStackHeaderConfig.o"_OBJC_CLASS_$_RCTRootView", referenced from:      objc-class-ref in RNSScreen.o"_OBJC_METACLASS_$_RCTViewManager", referenced from:      _OBJC_METACLASS_$_RNSScreenManager in RNSScreen.o      _OBJC_METACLASS_$_RNSScreenContainerManager in RNSScreenContainer.o      _OBJC_METACLASS_$_RNSScreenStackManager in RNSScreenStack.o      _OBJC_METACLASS_$_RNSScreenStackHeaderConfigManager in RNSScreenStackHeaderConfig.o      _OBJC_METACLASS_$_RNSScreenStackHeaderSubviewManager in RNSScreenStackHeaderConfig.o"_OBJC_METACLASS_$_RCTView", referenced from:      _OBJC_METACLASS_$_RNSScreenView in RNSScreen.o"_RCTExecuteOnMainQueue", referenced from:      -[RNSScreenContainerManager markUpdated:] in RNSScreenContainer.o"_OBJC_CLASS_$_RCTTouchHandler", referenced from:      objc-class-ref in RNSScreen.o"_OBJC_CLASS_$_RCTView", referenced from:      _OBJC_CLASS_$_RNSScreenView in RNSScreen.o"_OBJC_CLASS_$_RCTViewManager", referenced from:      _OBJC_CLASS_$_RNSScreenManager in RNSScreen.o      _OBJC_CLASS_$_RNSScreenContainerManager in RNSScreenContainer.o      _OBJC_CLASS_$_RNSScreenStackManager in RNSScreenStack.o      _OBJC_CLASS_$_RNSScreenStackHeaderConfigManager in RNSScreenStackHeaderConfig.o      _OBJC_CLASS_$_RNSScreenStackHeaderSubviewManager in RNSScreenStackHeaderConfig.o"_RCTConvertEnumValue", referenced from:+[RCTConvert(RNSScreen) RNSScreenStackPresentation:] in RNSScreen.o+[RCTConvert(RNSScreen) RNSScreenStackAnimation:] in RNSScreen.o+[RCTConvert(RNSScreen) RNSScreenReplaceAnimation:] in RNSScreen.o+[RCTConvert(RNSScreenStackHeader) RNSScreenStackHeaderSubviewType:] in RNSScreenStackHeaderConfig.o+[RCTConvert(RNSScreenStackHeader) UIBlurEffectStyle:] in RNSScreenStackHeaderConfig.o"__RCTLogNativeInternal", referenced from:      -[RNSScreenView setStackPresentation:] in RNSScreen.o      -[RNSScreenStackView insertReactSubview:atIndex:] in RNSScreenStack.old: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)Build failed    5/13/21, 6:14 PM    156.7 seconds

Showing download progress as a notification in React Native+Expo on Android?

$
0
0

Is there a way to show a download progress as a notification using expo-file-system API? I know I can create a component, which will render a progress bar depending on how much bytes are already downloaded, but I want a native progress bar, which usually pops up in notifications, when you are downloading something from in a browser.

Although the question is specific to Android, any additional information associated with iOS is welcome.

Thank you!

In React Native how can I execute action after a Push Notification without user interaction?

$
0
0

I have a React Native app that receives a push notification from my server.When the app is in background and the user open the notification the app prints a label.When the app is in foreground and receives the notification the app immediately prints a label.

I would like to print the label without the interaction of the user when the app is in background.

How can I achieve this?

I was thinking to use Expo Background Fetch but I need to print the label immediately after the notification and with the Expo Background Fetch I could print too late.

Thanks

Not receiving foreground notifications/event on ios - on first app open only

$
0
0

I have set up react-native-firebase and React Native Push Notifications packages.

I am getting all notifications when the app is background on both ios and android devices.

On iOS, when the app is first opened after install (and after it gets the permissions), it's not getting any events in the firebase notification handler: messaging().onMessage. If I quit the app and open it again the events/notifications are coming in, after that all notifications are received normally

I've set up the messaging().onMessage handler to run after the notification permissions were granted and checked to make sure it gets called.Checked AppDelegate.m to make sure sure it's set up as the documentations.

If I don't grant the notifications permissions on the first app open, quit the app, open it again and grant the permissions it will not get the foreground notifications until the next app open.

Using:

"@react-native-firebase/messaging": "11.3.2""react-native": "0.63.3"

Any suggestions?

post request work in android but not in iOS

$
0
0

I have a react native application with WebView , the WebView have a post request.The WebView works as expected in android and gets the page, but when I'm trying in iOS, it does not work.

When I log the data being passed, it all looks fine.

The page I'm trying to load is not mine.

Here's my code

<WebView      originWhitelist={["*"]}      headers= {{"Content-Type": "application/x-www-form-urlencoded",      }}      source={{        uri: cloud_function_server_url + props.provider.link,        method: "POST",        body:"order_id=" +          props.payData.order_id +"&amount=" +          props.payData.amount +"&product=" +          props.payData.product_name +"&mobile_no=" +          props.payData.mobile_no +"&email=" +          props.payData.email +"&productamount=" +          props.payData.productamount +"&type=" +          props.payData.type,      }}      onLoadStart={onLoadStart}    />

It says amount and email in invalid. But the same data gets passed for Android and it works well.

How to save a Picture to a specific folder from React Native Camera Roll

$
0
0

So I'm using Expo's Camera API to take a picture, like so:

takePicture = async function() {  if(this.camera) {    this.camera.takePictureAsync().then(data => {        CameraRoll.saveToCameraRoll(data.uri);    }).then(() => {      this.setState({        photoId: this.state.photoId + 1,      });    });  }};

Now, I'd like to specifically retrieve the pictures I take with this app to work with later. I figure an easy way to do this would be if the app saved its pictures to a separate folder in the camera roll, much like how Instagram makes its own folder in there.

How would I go about having the app create its own folder in the camera roll, and then saving pictures to it?

How do I make the mini controller appear in react-native-google-cast for iOS?

$
0
0

I set up react-native-google-cast in React Native app set up with expanded controls enabled. The documentation implies (here and here) that the mini controller should automatically appear. There is only one component in the package: CastButton. I have enabled useDefaultExpandedMediaControls in AppDelegte.m and the expanded controls appear when casting starts. Once the expanded controls are dismissed, no mini controller appears.

package.json:

{"name": "iosvideo","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 ."  },"dependencies": {"react": "17.0.1","react-dom": "^17.0.2","react-native": "0.64.1","react-native-base64": "^0.2.1","react-native-google-cast": "^4.0.3","react-native-web": "^0.16.2"  },"devDependencies": {"@babel/core": "^7.12.9","@babel/runtime": "^7.12.5","@react-native-community/eslint-config": "^2.0.0","babel-jest": "^26.6.3","babel-plugin-react-native-web": "^0.16.2","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"  }}

App.js:

/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow strict-local */import React from 'react';import {  SafeAreaView,  StatusBar,} from 'react-native';import base64 from 'react-native-base64';import GoogleCast, { CastButton, useRemoteMediaClient } from 'react-native-google-cast';const App = () => {  const client = useRemoteMediaClient();  const getProxyUrl = function(url) {    const proxy_url = 'http://192.168.2.220:10000';    const video_url = base64.encode(url);    const file_extension = '.m3u8';    const hls_proxy_url = `${proxy_url}/${video_url}${file_extension}`;    return hls_proxy_url;  };  if (client) {    client.loadMedia({      mediaInfo: {        contentUrl:          getProxyUrl('http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl'),        contentType: 'video/m3u',        metadata: {          title: 'Apple Event',          type: 'generic',        },        streamDuration: 0,      },      startTime: 10, // seconds    });    GoogleCast.showExpandedControls();  }  return (<><SafeAreaView><StatusBar/><CastButton style={{width: 24, height: 24, tintColor: 'black', alignSelf: 'flex-end', marginHorizontal: 8}} /></SafeAreaView></>  );};export default App;

AppDelegate.m:

#import "AppDelegate.h"...#import <GoogleCast/GoogleCast.h>@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{#ifdef FB_SONARKIT_ENABLED  InitializeFlipper(application);#endif  // https://github.com/facebook/react-native/issues/16376#issuecomment-810094592  NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.js" fallbackResource:nil];  RCTBridge *bridge = [[RCTBridge alloc] initWithBundleURL:jsCodeLocation                                              moduleProvider:nil                                               launchOptions:launchOptions];  #if RCT_DEV   [bridge moduleForClass:[RCTDevLoadingView class]];  #endif  // END  // RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge                                                   moduleName:@"iosVideo"                                            initialProperties:nil];  if (@available(iOS 13.0, *)) {      rootView.backgroundColor = [UIColor systemBackgroundColor];  } else {      rootView.backgroundColor = [UIColor whiteColor];  }  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];  UIViewController *rootViewController = [UIViewController new];  rootViewController.view = rootView;  self.window.rootViewController = rootViewController;  [self.window makeKeyAndVisible];  NSString *receiverAppID = @"XXXXXXX";  GCKDiscoveryCriteria *criteria = [[GCKDiscoveryCriteria alloc] initWithApplicationID:receiverAppID];  GCKCastOptions* options = [[GCKCastOptions alloc] initWithDiscoveryCriteria:criteria];  [GCKCastContext setSharedInstanceWithOptions:options];  [GCKCastContext sharedInstance].useDefaultExpandedMediaControls = true;  return YES;}...

The Google Cast SDK docs state that

In CAF, the framework provides a control bar,GCKUIMiniMediaControlsViewController, which you can add to the sceneswhere you want to show the persistent controls. There are two ways toadd the mini controller to a sender app:

Let the Cast framework manage the layout of the mini controller bywrapping your existing view controller with theGCKUICastContainerViewController and adding aGCKUIMiniMediaControlsViewController at the bottom of its view.

Add the mini controller directly to your existing view controller byusing -[createMiniMediaControlsViewController] to create aGCKUIMiniMediaControlsViewController instance and then adding it tothe container view controller as a subview.

I assumed this was implemented in the React Native library, but maybe I'm missing a step?

Failed to install CocoaPods dependencies for iOS project React-Native

$
0
0

So I tried to use react-native on my brand new MacBook but I'm having some issues.

(I'm on MacOs BigSur Version 11.2.2 with a M1)

I followed the step on the environnement setup on react native website.

brew install nodebrew install watchman

Installed Xcode and went to preferences > location > Command line tools > Xcode 12.4 (12D4e)

sudo gem install cocoapods

Then, I tried to do : npx react-native init tesr (I misspelled test and wrote tesr but I guess it's not really important).

and here I got this error :

✖ Installing CocoaPods dependencies (this may take a few minutes)✖ Installing CocoaPods dependencies (this may take a few minutes)error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template.Please try again manually: "cd ./tesr/ios && pod install".

So, I try cd ./tesr/ios && pod install and I see this :

    ### Command```/opt/homebrew/Cellar/cocoapods/1.10.1/libexec/bin/pod install```### Report* What did you do?* What did you expect to happen?* What happened instead?### Stack```   CocoaPods : 1.10.1        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20]    RubyGems : 3.0.3        Host : macOS 11.2.2 (20D80)       Xcode : 12.4 (12D4e)         Git : git version 2.24.3 (Apple Git-128)Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/libRepositories : ```### Plugins```cocoapods-deintegrate : 1.0.4cocoapods-plugins     : 1.0.0cocoapods-search      : 1.0.0cocoapods-trunk       : 1.5.0cocoapods-try         : 1.2.0```### Podfile```rubyrequire_relative '../node_modules/react-native/scripts/react_native_pods'require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'platform :ios, '10.0'target 'tesr' do  config = use_native_modules!  use_react_native!(    :path => config[:reactNativePath],    # to enable hermes on iOS, change `false` to `true` and then install pods    :hermes_enabled => false  )  target 'tesrTests' do    inherit! :complete    # Pods for testing  end  # Enables Flipper.  #  # Note that if you have use_frameworks! enabled, Flipper will not work and  # you should disable the next line.  use_flipper!()  post_install do |installer|    react_native_post_install(installer)  endend```### Error```LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle, 0x0009): missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi.rb:6:in `rescue in <top (required)>'/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi.rb:3:in `<top (required)>'/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'/Library/Ruby/Gems/2.6.0/gems/ethon-0.12.0/lib/ethon.rb:2:in `<top (required)>'/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'/Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `<top (required)>'/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:74:in `cdn_url?'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:36:in `create_source_with_url'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:21:in `find_or_create_source_with_url'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:178:in `block in sources'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:177:in `map'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:177:in `sources'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1073:in `block in resolve_dependencies'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in `analyze'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'/opt/homebrew/Cellar/cocoapods/1.10.1/libexec/bin/pod:23:in `load'/opt/homebrew/Cellar/cocoapods/1.10.1/libexec/bin/pod:23:in `<main>'```――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――[!] Oh no, an error occurred.

Even if there was an error, I wanted to try to run-ios, it obviously didn't worked, and then I went on some other stackOverflow page that got the same problem than me and couldn't solve my problem.

I'm new to macOS and apple product so I'm probably really bad at this but yeah if you have something that can help, I'll try it.


Xcode 12 very slow to launch simulator

$
0
0

Someone could help me ?

I have a problem with Xcode 12.4, the application takes more than 5 minutes to launch the app and stay blocked building the app.

It's not a problem with my application because i have tried with the new app and the problem still be the same.

React Native Collaboration through Github targeting IOS and Android

$
0
0

A friend and I hope to collaborate on a project using React Native CLI. We are both new to react native, and we have set up our Github repository. However, we are running into problems running our code as I am on a mac trying to run on an IOS emulator and he is on Windows trying to run on an Android Emulator. When I create a project using npx react-native init, I can run the project on my computer but on his computer the build fails, and vice versa.

We believe this is because we are trying to run the project for two different operating systems, but aren't sure how we can collaborate on Github and not run into this problem. How can we fix our problem?

Can you run two PHYSICAL devices in Xcode 12.0.0+ BOTH using the same codebase/files?

$
0
0

This question has been asked multiple times with no clear answer with anything over Xcode 9.0.0, so I'm wondering in Xcode 12.0.0+ if you can run the same app/code through xcode to launch on one physical device, and then launch another xcode instance on a DIFFERENT physical phone?

I've tried with multiple simulators with no success (just closes the old one and starts a new instance on the 2nd device closing the first).

React-native: Positioning element based on different simulator

$
0
0

I have created one Button component by using styled component and typescript. I have used my button in different places. I am currently testing my app into different simulator. I have an issue with positioning the button. In iPhone-8 it looks as expected but in iPhone-11 the position of the button is different. I have not tested my app in android yet but I am pretty sure it will look different in Android simulator. I used css properties top for positioning. I don't know is there any better way I can position the button component where it looks same in every simulator.

This is my button component

import React from 'react';import styled from 'styled-components/native';import { ButtonText } from '../texts';import { TouchableOpacityProps } from 'react-native';type Props = TouchableOpacityProps & {  title: string;  onPress: () => void;  disabled?: boolean;  endTitle?: string;  color?: string;};const Container = styled.TouchableOpacity<Props>`  background-color: ${({ theme, disabled, color }) =>    disabled      ? theme.colors.greyGradient[500]      : color ?? theme.colors.primaryGradient[900]};  padding: 20px;  align-items: center;  justify-content: ${({ endTitle }) =>    endTitle ? 'space-between': 'center'};  flex-direction: row;`;const TitleText = styled(ButtonText)`  color: ${({ theme }) => theme.colors.white};`;const Button = ({  title,  onPress,  disabled = false,  endTitle,  color}: Props) => {  return (<Container      {...{ title, onPress, disabled, color }}><TitleText>{title}</TitleText>      {endTitle && <TitleText>{endTitle}</TitleText>}</Container>  );};export default Button;

This is the screen where I am using my button component

import React from 'react';import styled from 'styled-components/native';import { useNavigation } from '@react-navigation/native';import Button from './Button';const Container = styled.View`  flex: 1;  justify-content: center;  align-items: center;  overflow: hidden;  background-color: white;`;const TitleText = styled.Text`  padding-top: 20px;  padding-horizontal: 20px;  text-align: center;`;const DescriptionText = styled.Text`  text-align: center;  padding: 20px;`;const MenuContainer = styled.View`  width: 100%;  top: 23%; // this is the position which is shows me different position in different simulator`;const Login = () => {  const navigation = useNavigation();  return (<Container><TitleText>login</TitleText><DescriptionText>Create an account</DescriptionText><MenuContainer><Button          title="create a new acount"          onPress={() => navigation.navigate('register')}        /></MenuContainer></Container>  );};export default Login;

Swift._ArrayBuffer._copyContents on Xcode

$
0
0
"Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (Swift.IndexingIterator<Swift._ArrayBuffer<A>>, Swift.Int)", referenced from:      generic specialization <serialized, Swift._ArrayBuffer<Swift.Int8>> of Swift._copyCollectionToContiguousArray<A where A: Swift.Collection>(A) -> Swift.ContiguousArray<A.Element> in libAlamofire.a(NetworkReachabilityManager.o)ld: symbol(s) not found for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)

I upgrade Xcode 12.5 with ios 14.5 version. and I tried to excute my app...and I got an above problem... I don't know how to solve this problem. does anyone who solve this ???

"Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral" issue while installing react native on macOS Big Sur

$
0
0

I was trying to install React Native on my system, and found that it failed to install CocoaPods dependencies which is required by that template error.

sudo arch -x86_64 gem install ffi fixed this issue but ended up with event-config.h" file not found error.

I changed the changed the flipper version in pod file to use_flipper!({'Flipper'=>'0.76.0'}) and then I reached to the error mentioned above. Any help on this issue would be appreciated.

node version : 15.10.0react-native version: 0.63.4Xcode version: 12.4

Error description below:

Showing Recent MessagesCould not find or use auto-linked library 'swiftCoreGraphics'Could not find or use auto-linked library 'swiftUIKit'Could not find or use auto-linked library 'swiftDarwin'Could not find or use auto-linked library 'swiftFoundation'Could not find or use auto-linked library 'swiftMetal'Could not find or use auto-linked library 'swiftObjectiveC'Could not find or use auto-linked library 'swiftCoreFoundation'Could not find or use auto-linked library 'swiftDispatch'Could not find or use auto-linked library 'swiftCoreImage'Could not find or use auto-linked library 'swiftQuartzCore'Could not find or use auto-linked library 'swiftCore'Could not find or use auto-linked library 'swiftSwiftOnoneSupport'Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteralUndefined symbol: associated type descriptor for Swift.ExpressibleByIntegerLiteral.IntegerLiteralTypeUndefined symbol: associated conformance descriptor for Swift.ExpressibleByIntegerLiteral.Swift.ExpressibleByIntegerLiteral.IntegerLiteralType: Swift._ExpressibleByBuiltinIntegerLiteralUndefined symbol: method descriptor for Swift.ExpressibleByFloatLiteral.init(floatLiteral: A.FloatLiteralType) -> AUndefined symbol: protocol descriptor for Swift.ExpressibleByIntegerLiteralUndefined symbol: value witness table for Builtin.Int32Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreImageUndefined symbol: associated type descriptor for Swift.ExpressibleByFloatLiteral.FloatLiteralTypeUndefined symbol: __swift_FORCE_LOAD_$_swiftQuartzCoreUndefined symbol: __swift_FORCE_LOAD_$_swiftDispatchUndefined symbol: method descriptor for Swift.ExpressibleByIntegerLiteral.init(integerLiteral: A.IntegerLiteralType) -> AUndefined symbol: __swift_FORCE_LOAD_$_swiftCoreFoundationUndefined symbol: protocol witness table for Swift.Int : Swift._ExpressibleByBuiltinIntegerLiteral in SwiftUndefined symbol: __swift_FORCE_LOAD_$_swiftObjectiveCUndefined symbol: __swift_FORCE_LOAD_$_swiftCoreGraphicsUndefined symbol: _swift_getForeignTypeMetadataUndefined symbol: __swift_FORCE_LOAD_$_swiftFoundationUndefined symbol: associated conformance descriptor for Swift.ExpressibleByFloatLiteral.Swift.ExpressibleByFloatLiteral.FloatLiteralType: Swift._ExpressibleByBuiltinFloatLiteralUndefined symbol: __swift_FORCE_LOAD_$_swiftUIKitUndefined symbol: __swift_FORCE_LOAD_$_swiftMetalUndefined symbol: Swift.Float.init(Swift.Double) -> Swift.FloatUndefined symbol: __swift_FORCE_LOAD_$_swiftDarwinUndefined symbol: protocol witness table for Swift.Float : Swift._ExpressibleByBuiltinFloatLiteral in Swift

Build crashing for iOS and Android Standalone App

$
0
0

I have been developing an application using expo for a while now and wanted to build standalone iOS and Android apps to move forward.

I got the build by runningexpo build:ios -t simulator

But when I try to open the application on my iOS simulator, it crashes instantly.

Here is my crash report. Please help.

Process:               ComVr1126Firebeats [7597]Path:                  /Users/USER/Library/Developer/CoreSimulator/Devices/8A69BC9D-D2E0-4305-9A6E-1A321F2DD6AC/data/Containers/Bundle/Application/0E63A44A-92CA-4A05-A92D-126CC4BC24C3/Firebeats 3.app/ComVr1126FirebeatsIdentifier:            ComVr1126FirebeatsVersion:               0Code Type:             X86-64 (Native)Parent Process:        launchd_sim [2758]Responsible:           SimulatorTrampoline [1776]User ID:               501Date/Time:             2021-05-16 02:07:51.450 -0400OS Version:            Mac OS X 10.15.7 (19H2)Report Version:        12Bridge OS Version:     4.6 (17P6610)Anonymous UUID:        8817E90B-DC7D-523C-5B35-93B8BCD4A620Time Awake Since Boot: 2000 secondsSystem Integrity Protection: enabledCrashed Thread:        0  Dispatch queue: com.apple.main-threadException Type:        EXC_CRASH (SIGABRT)Exception Codes:       0x0000000000000000, 0x0000000000000000Exception Note:        EXC_CORPSE_NOTIFYApplication Specific Information:*** Terminating app due to uncaught exception 'ExpoFatalError', reason: 'Expo encountered a fatal error: Unhandled JS Exception: Error: Cannot make a deep link into a standalone app with no custom scheme defined'terminating with uncaught exception of type NSExceptionabort() calledCoreSimulator 732.18.6 - Device: iPhone 12 Pro Max (8A69BC9D-D2E0-4305-9A6E-1A321F2DD6AC) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone 12 Pro Max

How to make all pages in react native RTL?

$
0
0

There is a way to make all the screens in the application RTL display, or I have to do it for each screen?

How to load local svg file with react-native-svg library

$
0
0

I am trying to load a local SVG file in react-native with a react-native-svg library, I have already installed it but I can't figure out how to do it with local svg files. the file is located in "./assets/bg.svg" and i am using expo. please write the exact code if you know.

How to run xcrun simctl on real devices?

$
0
0

I want to take screenshots of my react native app with 100% Battery, full cellular and time: 9:41 in the status bar. I asked a similar question before and know that you can change simulator's status bar like xcrun simctl status_bar booted override --time "9:41" --batteryState charged --batteryLevel 100.But how can achieve that on a real device? I need to use a real device because the screenshots I want to make are in a premium area and with react-native-iap you can't in-app purchase on a simulator.

React native Customize JitsiMeetView component

$
0
0

I need to set feature flags on RNJitsiMeetModule to change options on JitsiMeetView component, I set them as shown above, but no changes persist, except SetFeatureFlag ("chat. enabled", false), it works for, could anyone help me to disable some options?

https://jitsi.github.io/handbook/docs/dev-guide/mobile-feature-flags

RNJitsiMeetConferenceOptions options = new RNJitsiMeetConferenceOptions.Builder()                            .setRoom(url)                            .setAudioOnly(true)                            .setUserInfo(_userInfo)                            .setAudioOnly(false)                            .setWelcomePageEnabled(false)                            .setFeatureFlag("call-integration.enabled",false)                            .setFeatureFlag("close-captions.enabled",false)                            .setFeatureFlag("chat.enabled",false)                            .build();                    mJitsiMeetViewReference.getJitsiMeetView().join(options);

React-native-agora Audio not working in foreground mode only in background mode (iOS)

$
0
0

I am facing a strange problem with RN agora, When I start a video call on iOS everything works fine but whenI pass my app to background and re-open it the audio doesn't work anymore in foreground mode.Even if I end the call and join again the channel only background audio worked fine. I cannot understand why.

If someone could help please ?

Thank you in advance.

Viewing all 16907 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>