Re: iOS
app.
After I set up pods through CLI to my undertaking for the primary time, launch Xcode
, after which run the app, every part works effective – no construct errors.
However after a number of cases of operating the undertaking on my gadget, unexpectedly construct errors appear as if:
/Pods/FirebaseCrashlytics/Crashlytics/Crashlytics/Settings/Fashions/FIRCLSApplicationIdentifierModel.m:19:9 ‘Crashlytics/Shared/FIRCLSByteUtility.h’ file not discovered
/Pods/PostHog/vendor/libwebp/ph_sharpyuv_csp.h /Pods/PostHog/vendor/libwebp/ph_sharpyuv_csp.h: No such file or listing
And I do not know why if it is due to my PodFile or any Construct Settings/Phases/Guidelines, however this retains taking place repeatedly and it is unimaginable to develop something with this.
I’ve tried a string of instructions comparable to pod deintegrate
, pod cache clear --all
, eradicating PodFile.lock
and operating pod set up
once more, eradicating derived information, and cleansing construct folder.
I nonetheless maintain operating into the identical construct error and it is all the time after a number of builds this occurs, nothing is lacking prior when the undertaking efficiently builds.
Right here is my PodFile for reference:
# Uncomment the following line to outline a world platform on your undertaking
platform :ios, '17.0'
def google_utilities
pod 'GoogleUtilities/AppDelegateSwizzler'
pod 'GoogleUtilities/Atmosphere'
pod 'GoogleUtilities/ISASwizzler'
pod 'GoogleUtilities/Logger'
pod 'GoogleUtilities/MethodSwizzler'
pod 'GoogleUtilities/NSData+zlib'
pod 'GoogleUtilities/Community'
pod 'GoogleUtilities/Reachability'
pod 'GoogleUtilities/UserDefaults'
finish
goal 'SE' do
# Remark the following line in case you do not wish to use dynamic frameworks
use_frameworks!
# Pods for SE
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Auth'
google_utilities
finish
goal 'NSE' do
# Remark the following line in case you do not wish to use dynamic frameworks
use_frameworks!
# Pods for NSE
pod 'Firebase/Messaging'
google_utilities
finish
goal 'targetApp' do
# Remark the following line in case you do not wish to use dynamic frameworks
use_frameworks!
#Pods for targetApp
pod 'Firebase/Core'
pod 'Firebase/Crashlytics'
pod 'Firebase/Messaging'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'Firebase/Capabilities'
pod 'PromiseKit', '~> 6.0'
pod 'lottie-ios'
pod 'GooglePlaces'
pod 'JWTDecode', '~> 2.4'
pod 'PostHog'
pod 'Kingfisher', '~> 8.0'
pod 'PhoneNumberKit'
google_utilities
finish
post_install do |installer|
installer.aggregate_targets.every do |goal|
goal.xcconfigs.every do |variant, xcconfig|
xcconfig_path = goal.client_root + goal.xcconfig_relative_path(variant)
IO.write(xcconfig_path, IO.learn(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
finish
finish
installer.pods_project.targets.every do |goal|
goal.build_configurations.every do |config|
if config.base_configuration_reference.is_a? Xcodeproj::Venture::Object::PBXFileReference
xcconfig_path = config.base_configuration_reference.real_path
IO.write(xcconfig_path, IO.learn(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '17.0'
finish
finish
finish
installer.pods_project.targets.every do |goal|
if goal.identify == 'BoringSSL-GRPC'
goal.source_build_phase.information.every do |file|
if file.settings && file.settings['COMPILER_FLAGS']
flags = file.settings['COMPILER_FLAGS'].cut up
flags.reject! flag
file.settings['COMPILER_FLAGS'] = flags.be part of(' ')
finish
finish
finish
finish
finish
And right here is my solely “Run Script” in Construct Phases:
"${PODS_ROOT}/FirebaseCrashlytics/upload-symbols"
-gsp "${PROJECT_DIR}/targetApp/GoogleService-Data.plist"
-p ios
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"