I want to use alamofire for my xcode project but got an error:
Could not build Objective-C module 'Alamofire'
Here is my pod file:
pod file image
Related
I am trying to run an a fresh react native project using react native cli but I get the following error:
2022-07-22 09:31:45.006 xcodebuild[96346:8084479] 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-07-22 09:31:45.006 xcodebuild[96346:8084479] 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 **
The following build commands failed:
CompileC /Users/ramiel/Library/Developer/Xcode/DerivedData/AwesomeProject-dcybszwqvhaflbhahawancnnffvo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/SysUio.o /Users/ramiel/Desktop/Typescript/react\ native/AwesomeProject/ios/Pods/RCT-Folly/folly/portability/SysUio.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'YogaKit' from project 'Pods')
(2 failures)
I appreciate any help
install the cocoapods for ios using the command sudo gem install cocoapods
after installation navigate to the ios folder and run pod install. then you can run your project using npx react-native run-ios
For some reason. I created a new typescript project and it worked :)
after installing react-native frebase/app it works well for android , but in case of ios ...use of cd ios && pod install ..then pod is not installed ...follow the official documentation Altering CocoaPods to use frameworks
Beginning with firebase-ios-sdk v9+ (react-native-firebase v15+) you must tell CocoaPods to use frameworks.
Open the file ./ios/Podfile and add this line inside your targets:
use_frameworks!
To use Static Frameworks on iOS, you also need to manually enable this for the project with the following global to the top of your /ios/Podfile file:
$RNFirebaseAsStaticFramework = true...
is it same folder ./ios/podfile and /ios/podfile ?
then also not installed the pod and then use of
$RNFirebaseAsStaticFramework = true
use_modular_headers!
at the top of the pod file
and finally pod is installed but when build using npx react-native run-ios and then give a long error
Command CompileSwiftSources failed with a nonzero exit code
2022-07-05 16:47:46.163 xcodebuild[11109:198292] 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-07-05 16:47:46.163 xcodebuild[11109:198292] 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 **
The following build commands failed:
CompileC /Users/arindam/Library/Developer/Xcode/DerivedData/DemoChat-cttmfseavejzhadnawolzvwrzelz/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-jsi.build/Objects-normal/x86_64/JSIDynamic.o /Users/arindam/Documents/test_projects/DemoChat/node_modules/react-native/ReactCommon/jsi/jsi/JSIDynamic.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-jsi' from project 'Pods')
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'YogaKit' from project 'Pods')
(2 failures)
please help i am new to react native...how to solve the issue...
follow this.
xcode command line build failed with com.apple.compilers.llvm.clang.1_0.compiler
if above doesnt work, downgrade firebase version.
ie. package.json
"#react-native-firebase/app": "^12.9.0", // version 12 works great for me, but i get your error when i run version 15.
I have built an app which is working on android fine. I have now got a MacBook Pro (M1) and am trying to build my RN app to iOS.
I ran sudo gem install cocoapods
I installed the packages at the root using npm install
cd ios
pod init
here is my podfile
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'caffeind' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for caffeind
target 'caffeindTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'caffeind-tvOS' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for caffeind-tvOS
target 'caffeind-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
as you can see there are no pods where I expected more, so when I run pod install i receive the message and rightly so...
Pod installation complete! There are 0 dependencies from the Podfile and 0 total pods installed.
[!] The Podfile does not contain any dependencies.
however when I then go to build in my Xcode using caffeind.xcworkspace file, I receive the error
'React/RCTBridgeDelegate.h' file not found
there is some helpful advice here - https://github.com/facebook/react-native/issues/25838 but...
I cannot add React to the schemes and I do not see it in my Libraries folder in my project navigator. As the above error seems to be linked to the cocoapods dependency, I believe these issues are linked and whenever I try to manually add React pods to the podfiles there is always another dependency or pod that it needs.
This is my xCode directory
caffeind
caffeind
Libraries - empty
Products
Frameworks
Resources
Pods
pods
-etc
versions:
React Native - 0.63.2
React Native cli - 4.14.0
Ruby - 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
Cocoapods - 1.10.1
Xcode - 12.4
MacBook Pro - Big Sur - 11.2.3 - M1
I'm trying to install the libary ( pusher ) onto IOS that is made with react-native language.
The command I used was
pod 'libPusher', git: 'https://github.com/pusher/libPusher.git', branch: 'push-notifications
The error that I got was
[!] Unknown command: `libPusher,`
Did you mean: list?
Usage:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
...
I have no idea why this pod installation doesn't work. Pod version is 1.0.1.
(pod --version)
Please share any idea with me!
Not sure if you ever figured this out, but the line Pusher gives you isn't for the command line. Add it to your Podfile:
target 'MyApp' do
pod 'libPusher', git: 'https://github.com/pusher/libPusher.git', branch: 'push-notifications'
end
Then run pod install to install it
Try adding -lc++ to your Tests Other Linker Flags
I have a swift project that uses Obj-C cocoapods, but whenever I build, it failed due to unresolved identifiers for setBackgroundImageForState as well as setImageForState.
My Podfile contains:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.1'
pod 'AFNetworking'
pod 'AnimatedGIFImageSerialization'
pod 'TTTAttributedLabel'
pod 'JTSImageViewController'
pod 'JSQMessagesViewController'
and I have run pod install.
My bridge file contains:
#import <AFNetworking/AFNetworking.h>
#import <AFNetworking/UIKit+AFNetworking.h>
#import "TTTAttributedLabel/TTTAttributedLabel.h"
#import "JTSImageViewController/JTSImageViewController.h"
#import <JSQMessagesViewController/JSQMessages.h>
and it is linked correctly in the project settings.
Any idea why this is happening? Thanks.
Open Terminal, cd to the directory where your Podfile resides:
] ls
...
Podfile
Remove former installation:
] rm -rf Pods/ Podfile.lock
Re-install:
] pod install
Downloading dependencies
Installing AFNetworking (2.6.0)
Installing AnimatedGIFImageSerialization (0.2.0)
Installing JSQMessagesViewController (7.1.0)
Installing JSQSystemSoundPlayer (2.0.1)
Installing JTSImageViewController (1.4)
Installing TTTAttributedLabel (1.13.4)
Generating Pods project
Integrating client project
Xcode > Product > Clean Build Folder (option-shift-command-K). You may also want to remove the derived data for good measures (Xcode > Window > Projects > Delete).