Jitsi Build Directory issues - ios

I am using JITSI SDK in IOS for live streaming. The SDK was installed using cocoapods. Previously I was using JITSI SDK 7.0.0(which was working fine). We faced ARM64 issue intermittently on 7.0.0. We tried updating the SDK to latest version and now we are facing the below issue.
Details of Platform versions.
Swift version: 5.7
Xcode version: 14.2
Mac OS version: Ventura 13.1
JITSI SDK version: 7.0.1
Build Log:
CreateBuildDirectory /JitsiWebRTC
cd /Users/css/Desktop/Whaot/whaot-ios
builtin-create-build-directory /JitsiWebRTC
error: mkdir(/JitsiWebRTC, S_IRWXU | S_IRWXG | S_IRWXO): Read-only
file system (30)
mkdir(/JitsiWebRTC, S_IRWXU | S_IRWXG | S_IRWXO): Read-only file
system (30)
The folder in which JITSI tries to execute mkdir has enough permission. Screenshot attached
image
image
image
image
Build Log
Showing All Errors Only
Prepare packages
Prepare build
CreateBuildDirectory /JitsiWebRTC
cd /Users/css/Desktop/Whaot/whaot-ios
builtin-create-build-directory /JitsiWebRTC
error: mkdir(/JitsiWebRTC, S_IRWXU | S_IRWXG | S_IRWXO): Read-only file system (30)
mkdir(/JitsiWebRTC, S_IRWXU | S_IRWXG | S_IRWXO): Read-only file system (30)
Build target CountryPickerView-CountryPickerView_CountryPickerView
Build target libwebp
Build target IQKeyboardManagerSwift
Build target InstantSearchVoiceOverlay
Build target SkyFloatingLabelTextField
Build target GoogleUtilities
Build target FirebaseAnalytics
Build target nanopb
Build target ISMessages-ISMessages
Build target gRPC-C++-gRPCCertificates-Cpp
Build target GoogleDataTransport
Build target MZDownloadManager
Build target AppAuth
Build target SDWebImage
Build target gRPC-C++
Build target DropDown
Build target CountryPickerView
Build target Cosmos
Build target GoogleAppMeasurement
Build target PullToRefreshKit
Build target JitsiWebRTC
Build target FirebaseInstallations
Build target gRPC-Core
Build target FirebaseCoreInternal
Build target NVActivityIndicatorView
Build target PromisesObjC
Build target Reusable
Build target SuperBadges
Build target Socket.IO-Client-Swift
Build target FaveButton
Build target AHDownloadButton
Build target Starscream
Build target JitsiMeetSDK
Build target GTMAppAuth
Build target leveldb-library
Build target Alamofire
Build target GoogleSignIn
Build target BoringSSL-GRPC
Build target ISMessages
Build target Giphy
Build target NSLogger
Build target abseil
Build target GTMSessionFetcher
Build target GoogleSignIn-GoogleSignIn
Build target Permission
Build target FirebaseCore
Build target OverlayContainer
Build target Libuv-gRPC
Activity Log Complete 02/02/23, 12:58 PM 1.1 seconds
Tried removing and installing the pods, tried creating a new project and installed the pod but we faced the same issue.
Please help us on resolving this issue.
Thanks!

Related

Multiple commands produce FirebaseAnalytics.framework build error in React Native

After upgrading to the latest version of React Native (0.70.3) and updating all npm packages including the Firebase dependencies to version 16.1.1, my iOS app fails to build with the below error. Others who experienced similar errors said to look at the Copy Bundle Resources section in Xcode and remove any duplicates from there, but my list doesn't have any duplicates so I'm at a loss as to how to fix this...
note: Building targets in dependency order
error: Multiple commands produce '/Users/justintoth/Library/Developer/Xcode/DerivedData/Marriage365-cvaqfonbgyahhfgjedajduowtwdf/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/FirebaseAnalytics/AdIdSupport/FirebaseAnalytics.framework'
note: That command depends on command in Target 'FirebaseAnalytics' (project 'Pods'): script phase “[CP] Copy XCFrameworks”
note: That command depends on command in Target 'FirebaseAnalytics.default-WithoutAdIdSupport' (project 'Pods'): script phase “[CP] Copy XCFrameworks”
warning: duplicate output file '/Users/justintoth/Library/Developer/Xcode/DerivedData/Marriage365-cvaqfonbgyahhfgjedajduowtwdf/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/FirebaseAnalytics/AdIdSupport/FirebaseAnalytics.framework' on task: PhaseScriptExecution [CP] Copy XCFrameworks /Users/justintoth/Library/Developer/Xcode/DerivedData/Marriage365-cvaqfonbgyahhfgjedajduowtwdf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseAnalytics.default-WithoutAdIdSupport.build/Script-46EB2E00033070.sh (in target 'FirebaseAnalytics.default-WithoutAdIdSupport' from project 'Pods')
I had the same problem and resolved it with these steps :
Choose whether you want to use Firebase with ou without Support
In my case, I didn't this support, so I've modified the podfile with
Replace the line pod 'Firebase/Analytics' with pod 'Firebase/AnalyticsWithoutAdIdSupport'
Add this line before in your podfile : $RNFirebaseAnalyticsWithoutAdIdSupport = true
build with pod install
It fixed my problem

How to fix Flutter Failed to build iOS app?

I updated my Xcode to Version 13.4 and android studio to Chipmunk and after this, I am getting below error while trying to build for ios. This issue is only occurring for ios builds.
Below is the log I am getting.
Xcode build done. 19.5s
Failed to build iOS app
Error output from Xcode build:
↳
2022-05-27 19:18:46.624 xcodebuild[62430:463863] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-05-27 19:18:46.624 xcodebuild[62430:463863] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/6v/14mdnyyd4vs7gh4r1ry0hfxh0000gn/T/flutter_tools.IBcqbj/flutter_ios_build_temp_dirq4Dibw/temporary_xcresult_bundle
Failed to package /Users/bhaskarrajaryal/AndroidStudioProjects/PersonalProjects/FlutterProjects/testing.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Result bundle written to path:
/var/folders/6v/14mdnyyd4vs7gh4r1ry0hfxh0000gn/T/flutter_tools.IBcqbj/flutter_ios_build_temp_dirq4Dibw/temporary_xcresult_bundle
Could not build the application for the simulator.
Error launching application on iPhone 11.
Can anyone help me with this as I am stuck for fews day because of this?
The problem here is that the Podfile that Flutter template creates by
default has no specific iOS version set unfortunately.
Do this to fix this problem:
in ios/ folder of your project, open the Podfile.
At top of Podfile, make sure this line is not commented out and change the iOS version to 12.0.
change from:
#platform :ios, '8.0'
to:
platform :ios, '12.0'
Run pod deintegrate in Terminal inside the ios/ folder of your project.
Run pod install --repo-update in your ios/ folder
This should do the trick!
If after this you are getting the following error
CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target
Then you need to open your iOS workspace in Xcode and select your root project on top left, then inside the Info tab, choose your configuration (in this case Debug) and change it to None. After that, do pod install again.
HERE PICTURE :
CLICK HERE

Flutter cannot find FirebaseCore.h

I'm trying to build a Flutter app for iOS, but I'm running into a weird issue where flutter build can't locate one of the header files (that's physically where it needs to be inside the Pods directory).
This is what I get when I try to build the app:
:ghost: zmeggyesi#Shiny-Platform:/Users/zmeggyesi/projects/site-overwatch/frontend/ios (tags/release-2.6.0)
$ flutter build ios --release --no-codesign --no-tree-shake-icons
Changing current working directory to: /Users/zmeggyesi/projects/site-overwatch/frontend
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building hu.skawa.dive-site-overwatch-ios for device (ios-release)...
Running pod install... 21.6s
Running Xcode build...
└─Compiling, linking and signing... 12.2s
Xcode build done. 50.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Firebase.h"
^
/Users/zmeggyesi/projects/site-overwatch/frontend/ios/Pods/Firebase/CoreOnly/Sources/Firebase.h:15:9: error:
'FirebaseCore/FirebaseCore.h' file not found
#import <FirebaseCore/FirebaseCore.h>
^
/Users/zmeggyesi/projects/site-overwatch/frontend/ios/Runner/AppDelegate.swift:3:8: error: could not build Objective-C module
'Firebase'
import Firebase
^
Command CompileSwift failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
Encountered error while building for device.
And I'm kind of at a loss as to what might be causing this, or how to get around it.
The relevant Firebase declarations in my Pubspec:
firebase_core: 1.1.1
firebase_crashlytics: 2.0.3
firebase_analytics: 8.0.4
firebase_auth: 1.1.4
firebase_remote_config: 0.10.0-dev.3
firebase_storage: 8.0.6
So far, I've tried:
Nuking the Pods directory and the Podfile.
Commenting out the Firebase dependencies from my pubspec, followed by a flutter pub upgrade to update the lockfile, then doing a pod install before re-enabling them to re-download the pods.
Running flutter create . to regenerate the project descriptors.
Nuking the derived data dir (~/Library/Developer/Xcode/DerivedData), the Workspace descriptor, and the Pods/Podfile to regenerate everything from scratch.
This seems to be an issue only since I migrated to Flutter 2 and the latest packages, and only when I try to build in release mode (running the app in debug via XCode or Android Studio seems to work fine).
Correction: now even the XCode native build is broken, with the same error...
Anyone have any more ideas I could try? This is driving me crazy...
try to change global platform in Podfile this:
Uncomment the next line to define a global platform for your project
-# platform :ios, '9.0'
+ platform :ios, '13.0'

Flutter AMSupportURLConnectionDelegate is implemented in both ?? Error

I am facing many issues since I migrated my project to an Apple Silicon mac. I finally managed to reduce the problems but not sure the answer to this.
Running "flutter pub get" in Flutter_the app copy 3... 760ms
Launching lib/main.dart on iPhone 11 in debug mode...
Running pod install... 986ms
Running Xcode build...
Xcode build done. 1.5s
Failed to build iOS app
Error output from Xcode build:
↳
objc[95181]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20ba238f0) and ??
(0x1160dc2b8). One of the two will be used. Which one is undefined.
objc[95181]: Class AMSupportURLSession is implemented in both ?? (0x20ba23940) and ?? (0x1160dc308). One
of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: /Users/gorkem/Documents/flutter_workspace/Flutter_the app copy 3/ios/Flutter/Debug.xcconfig:
unable to open file (in target "Runner" in project "Runner") (in target 'Runner' from project 'Runner')
error: /Users/gorkem/Documents/flutter_workspace/Flutter_the app copy 3/ios/Flutter/Debug.xcconfig:
unable to open file (in target "Runner" in project "Runner") (in target 'Runner' from project 'Runner')
error: /Users/gorkem/Documents/flutter_workspace/Flutter_the app copy 3/ios/Flutter/Debug.xcconfig:
unable to open file (in target "Runner" in project "Runner") (in target 'Runner' from project 'Runner')
warning: Unable to read contents of XCFileList '/Target Support
Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist' (in target 'Runner' from project
'Runner')
error: Unable to load contents of file list: '/Target Support
Files/Pods-Runner/Pods-Runner-frameworks-Debug-input-files.xcfilelist' (in target 'Runner' from project
'Runner')
error: Unable to load contents of file list: '/Target Support
Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist' (in target 'Runner' from project
'Runner')
Could not build the application for the simulator.
Error launching application on iPhone 11.
Is there any way to solve this. I am not sure if the problem is even written in there.
I was getting this error
Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib
NOTE:
Try this first if you have updated to flutter 2.10 from <=2.8
flutter pub upgrade
Solution:
Please open podfile and update with this script
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
flutter clean
flutter pub get
cd ios
pod install
or instead of last command you can try below for M1
arch -x86_64 pod install // for M1
Run your app.
I was getting the same "error output from Xcode build" with my M1 macbook recently as well after updating to Flutter 2.x.
I was able to clear this issue on mine by doing the following:
Change directory to your project's path and sub-directory:
your_project/build/ios/Debug-iphonesimulator/
Run $ xattr -lr Runner.app
Run $ xattr -cr Runner.app
Apparently flutter projects have extended attributes in project app bundles containing Finder info which causes an error.
I found these links that helped for reference.
https://developer.apple.com/library/archive/qa/qa1940/_index.html
https://github.com/flutter/flutter/issues/72492
Try Selecting For install builds only in the run script in the Build phases tab.
Two things need to change:
First check the Dependancy for APNs if need to upgrade. Then Change the version in the POD file and then add
pod 'GoogleUtilities'
To the POD target like following:
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_macos_pods File.dirname(File.realpath(FILE))
pod 'GoogleUtilities'
end
.
After this Run Flutter pug get and Flutter run. It works for me.
Ref screenshot for POD file

How do I reset the ios library in react-native?

I have a new app that was initialised with
react-native init demo
and is run successfully using react-native run-ios.
I installed a few libraries using CocoaPods and now the react-native run-ios works but not the xcode build.
I tried deleting the Pods library, checking out all the files back to their original state, and repeating pod install but I still get the same error in xcode build :
Showing Recent Messages :-1: Cycle in dependencies between targets
'bridgeTests' and 'Pods-bridgeTests'; building could produce
unreliable results. Cycle path: bridgeTests → Pods-bridgeTests →
bridgeTests Cycle details: Target build order preserved because
“Parallelize Build” is off
→ Target 'bridgeTests' has target dependency on Target
'Pods-bridgeTests' → Target 'Pods-bridgeTests' has target dependency
on Target 'bridge' due to target order in a “Target Dependencies”
build phase or the scheme ○ That command depends on command in Target
'bridge': script phase “[CP] Copy Pods Resources”
I would like to somehow rebuild my entire ios library so that an xcode build would work just as the react-native run-ios works.
What's the solution?
Thanks,
Yaron
first delete ios & android folder, then do
react-native <= 0.59.10
react-native-cli <= 1.3.0
react-native eject
react-native <= 0.59.10
react-native-cli <= 1.3.0
react-native upgrade --legacy true
more...

Resources