I created a public pod , now I wanted to delete the pod spec because of some security concerns
pod trunk delete PODNAME VERSION
Care must be taken while doing this. If someone is using your spec file, you can damage the person's project after this process.
i'm working on swift 3 project with xcode 10.1, i have a requirement to install few pods (firebase/crashlytics), however when i trigger the pod install it seems to return the following error message. the previous used the same pod file and the project is running perfectly. the only issue is with installing new pods. anyone can help?
Get-R-Done -: Workspace name
Xtreme -: Project name
Pod File
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Get-R-Done' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'SwiftyJSON', '~> 3.1'
pod 'RealmSwift', '~> 2.1'
pod 'ALCameraViewController'
pod 'ReachabilitySwift', '~> 3'
pod 'ILPDFKit', '~> 1.0'
pod 'Fabric'
pod 'Crashlytics'
pod 'ActiveLabel', '~> 0.7'
# Add the pod for Firebase Crashlytics
pod 'Firebase/Crashlytics'
# Recommended: Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# Pods for Get-R-Done
target 'Get-R-DoneTests' do
inherit! :search_paths
# Pods for testing
end
target 'Get-R-DoneUITests' do
inherit! :search_paths
# Pods for testing
end
end
Error message that i get
[!] Unable to find a target named `Get-R-Done` in project `Xtreme.xcodeproj`, did find `Xtreme`, `XtremeTests`, and `XtremeUITests`.
Updated to Swift 4 and resolved isseue
Disclaimer - I'm inexperienced with Xcode / iOS development. At this point, I keep Googling, but I'm just attempting random fixes that I don't understand. I can move forward with the app on Android, but iOS support is a requirement for the users.
Current build errors:
Multiple targets match implicit dependency for product reference 'libReactNativeNavigation.a'.
Consider adding an explicit dependency on the intended target to resolve this ambiguity.
(in target 'AwesomeProject' from project 'AwesomeProject')
Multiple targets match implicit dependency for linker flag '-lReactNativeNavigation'.
consider adding an explicit dependency on the intended target to resolve this ambiguity.
(in target 'AwesomeProject' from project 'AwesomeProject')
Background
This is a React Native mobile app that's been working fine for the last few months, up until two weeks ago when I had other important work to switch my efforts toward. I quit/closed Xcode two weeks ago and reopened a few days ago to pick back up, but I got an error like
no podspec found in node_modules (I don't remember the exact problem)
In attempting to fix it, I deintegrated/cleaned/modified/reinstalled pod as detailed here.
Then somehow I got this error:
React/RCTEventEmitter.h file not found
(+ a 2nd similar message for another file)
Today, I've tried
1. cleaning DerivedData
a. moving it relative to my Xcode project,
2. Setting Build Active Architecture Only to No,
3. Step 5: If Xcode complains when linking... (except I don't think it was a *.a static library I added?
Now, the build fails after a few seconds:
Multiple targets match implicit dependency for product reference 'libReactNativeNavigation.a'.
Consider adding an explicit dependency on the intended target to resolve this ambiguity.
(in target 'AwesomeProject' from project 'AwesomeProject')
Multiple targets match implicit dependency for linker flag '-lReactNativeNavigation'.
consider adding an explicit dependency on the intended target to resolve this ambiguity.
(in target 'AwesomeProject' from project 'AwesomeProject')
I think the Podfile is straightforward?
platform :ios, '9.0'
require_relative '../node_modules/#react-native-community/cli-platform-ios/native_modules'
target 'AwesomeProject' do
# Pods for AwesomeProject
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/React'
pod 'React-DevSupport', :path => '../node_modules/react-native/React'
pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'react-native-camera', :path => '../node_modules/react-native-camera'
pod 'react-native-cameraroll', :path => '../node_modules/#react-native-community/cameraroll'
pod 'react-native-orientation-locker', :path => '../node_modules/react-native-orientation-locker'
target 'AwesomeProjectTests' do
inherit! :search_paths
# Pods for testing
end
use_native_modules!
end
target 'AwesomeProject-tvOS' do
# Pods for AwesomeProject-tvOS
target 'AwesomeProject-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
This is just a warning i believe, got one in my project too. I was linking manually library, done all the steps and my project failed to build. Since there was no error i thought the reason why it won't work must be in this warning, but i was mistaken. If you can, go back to error "React/RCTEventEmitter.h file not found" as this is something resolvable. React/RCTEventEmitter.h file not found
#chitzui answer helped me resolve my problem
It happens to me when I'm adding subspecs too. It's not possible for me to change this setup, but in your case, does ReactNative support a All subspec? Sorry I don't know much about this framework as I've been intentionally staying away from it for years; hope some ReactNative experts can help.
I am using the braintree using the cocoapods in my swift ios application. I successfully installed the braintree in my ios app. my pod file structure is:
target 'appName' do
pod 'GoogleMaps'
pod 'GooglePlaces'
# use_frameworks!
pod 'AFNetworking', '~> 2.6.0'
pod 'CardIO'
pod 'NSURL+QueryDictionary', '~> 1.0'
pod 'PureLayout'
pod 'FLEX'
pod 'InAppSettingsKit'
pod 'iOS-Slide-Menu'
# pod "BraintreeDropIn", :path => "./"
# pod 'Braintree/Apple-Pay'
pod 'Braintree/PayPal'
# pod 'Braintree/Venmo'
end
I added below header file in bridge file:
#import "BraintreeCore.h"
#import "BraintreePayPal.h"
#import "Braintree.h"
Now when I try to use in my code it says
Braintree.setReturnURLScheme("com.your-company.Your-App.payments")
Use of unresolved identifier 'Braintree'
So please suggest.
You don't need to import anything in bridging header file. After the installation from cocoapods, you can import it in any swift file as below,
import Braintree
And to set returnUrlScheme, you can use BTAppSwitch as below
BTAppSwitch.setReturnURLScheme("com.your-company.Your-App.payments")
I get the error ld: 89 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
and from what I've researched it seems the error is from the derived file but when I delete it new data gets created how do I stop it from creating new file, data etc? (it also seems related to Cocoapods or firebase)
my pod file:# Uncomment the next line to define a global platform for your project
target 'yeeeeeer' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for yeeeeeer
pod 'Firebase/Core', '3.2.1'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Firebase/Database' end