The pod `TensorFlow-experimental` is not found - tensorflow

I download the tensorflow from https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/ios
And then install it step by step.
When I install pod, there is an ERROR:
Is the TensorFlow-experimental being renamed or Somethins wrong ?

I had the same issue. I ended up reinstalling and updating to the most current version of CocoaPods(1.2.1)
tensorflow/examples/ios/simple/ $ pod install
Analyzing dependencies
[!] Unable to find a specification for `TensorFlow-experimental`
tensorflow/examples/ios/simple/ $ pod repo remove master
Removing spec repo `master`
tensorflow/examples/ios/simple/ $ pod setup
Setting up CocoaPods master repo
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress
Cloning into 'master'...
remote: Counting objects: 1342352, done.
remote: Compressing objects: 100% (2372/2372), done.
remote: Total 1342352 (delta 1560), reused 2050 (delta 796), pack-reused 1339018
Receiving objects: 100% (1342352/1342352), 405.31 MiB | 370.00 KiB/s, done.
Resolving deltas: 100% (673537/673537), done.
Checking out files: 100% (162776/162776), done.
CocoaPods 1.3.0.beta.1 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.3.0.beta.1
Setup completed
tensorflow/examples/ios/simple/ $ pod install
Analyzing dependencies
Downloading dependencies
Installing TensorFlow-experimental (1.1.1)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `tf_simple_example.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
tensorflow/examples/ios/simple/ $ pod --version
1.2.1

You can add the repo search path to the head of your Podfile.
source 'git#git#github.com:CocoaPods/Specs.git'
And pod install again.

Close Xcode.
In terminal at root of project, where the pod file lives,
issue command "pod update"
first time, and after any update.
MacBook-Pro-2:camera $ pod install
Analyzing dependencies
[!] Unable to find a specification for `TensorFlow-experimental`
MacBook-Pro-2:camera $ pod update
Update all pods
Updating local specs repositories
$ /usr/bin/git -C /Users/XXXXXX/.cocoapods/repos/master fetch origin
--progress
remote: Counting objects: 2006922, done.
remote: Compressing objects: 100% (403/403), done.
remote: Total 2006922 (delta 3740), reused 3789 (delta 3625), pack-reused 2002871
Receiving objects: 100% (2006922/2006922), 511.53 MiB | 665.00 KiB/s, done.
Resolving deltas: 100% (1146145/1146145), completed with 960 local objects.
From https://github.com/CocoaPods/Specs
58e4aaa8dab..224ab2278f7 master -> origin/master
* [new branch] backz -> origin/backz
* [new branch] predates_sharding_branch -> origin/predates_sharding_branch
* [new branch] swift_version_support -> origin/swift_version_support
* [new tag] v0.32.1 -> v0.32.1
* [new tag] 20161019 -> 20161019
$ /usr/bin/git -C /Users/XXXXXXX/.cocoapods/repos/master rev-parse
--abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/XXXXXXX/.cocoapods/repos/master reset --hard
origin/master
HEAD is now at 224ab2278f7 [Add] Taplytics_tvOS 2.25.2
warning: inexact rename detection was skipped due to too many files.
Analyzing dependencies
Downloading dependencies
Installing TensorFlow-experimental (1.1.1)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `tf_camera_example.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

Related

Latest Install for Apple M1 react-native

What are the latest installation instructions for Apple M1 Macbook Pro? (this works just fine on Ventura Intel)
I've tried several things and can't get the basic
npx react-native init mainapp
✔ Downloading template
✔ Copying template
✔ Processing template
✖ 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 ./mainapp/ios && pod install".
CocoaPods documentation: https://cocoapods.org/
then changing to the ios folder and issuing "pod install" yields:
Fetching podspec for hermes-engine from ../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec
[!] Failed to load 'hermes-engine' podspec:
[!] Invalid hermes-engine.podspec file: undefined method `exists?' for File:Class.
from mainapp/node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec:46
VERSIONS
pod --version
1.11.3
node -v
v19.4.0
npm -v
9.2.0
npx -v
9.2.0
yarn -v
1.22.19
ruby -v
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin21]
(yet in /Library/Ruby/Gems/2.6.0/ is listed?)

Unable to find a specification for `React-callinvoker` depended upon by `RNReanimated`

I'm trying to run pod install in the ios folder and I get this error.
omsonone#Oms-MacBook-Pro ios % pod install
Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
Detected React Native module pods for RNCMaskedView, RNReanimated, RNScreens, react-native-camera, react-native-safe-area-context, and react-native-save-view
Analyzing dependencies
[!] Unable to find a specification for `React-callinvoker` depended upon by `RNReanimated`
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
I tried pod repo update but it doesn't help. I'm not sure what to do.

React Native Cocoapods installation Issues

Anyone #with help on how to setup #reactnative #ide on #M1Macbookpro? Tried a number of YouTube tutorials but my problem begins when I start running "npx react-native init " and have problems installing cocoapods, even when I cd > install #dev #vscode
Followed the react native official installation guide all to no avail. Tried running terminal in rosetta to install cocoapods but still no results. Any help?
This is the error:
✔ Downloading template
✔ Copying template
✔ Processing template
✖ 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 ./AwesomeProject07/ios && pod install".
CocoaPods documentation: https://cocoapods.org/
try to run pod install with this command
sudo arch -x86_64 pod install
also run this command too
sudo arch -x86_64 gem install ffi

How to fix 'boost/operators.hpp' file not found' error in react-native

when I use 'react-native run-ios', there is some error, 'boost/operators.hpp' file not found.
I can not build and run my project:
react-native-cli: 2.0.1
react-native: 0.59.9
npm: 6.9.0
yarn: 1.16.0
node: v12.4.0
os: macos 10.14.5
xcode: 10.2.1
▸ Compiling JSIDynamic.cpp
❌ /Users/lidongbo/WorkBentch/ReactNative/AwesomeProject/node_modules/react-native/React/../third-party/folly-2018.10.22.00/folly/dynamic.h:63:10: 'boost/operators.hpp' file not found
#include <boost/operators.hpp>
^
▸ Analyzing JSCRuntime.cpp
▸ Analyzing jsi.cpp
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening AwesomeProject.xcodeproj
project can build and run.
If you get this issue in react-native-reanimated after upgrading to react-native 0.66 update your react-native-reanimated in package.json
Try "react-native-reanimated": "2.3.0-beta.2"
Don't forget to run yarn install or npm install to update your packages. Also do a pod install for ios and restart your server instance .
EDIT:
Support for react-native#0.66 has been officially added by react-native-reanimated#2.2.3 It is less buggy and a lot more issues have been solved.
Also check issue on github.
This might due to incomplete pods install - try deleting ios/Pods folder and run pod install under ios.
An alternative error for the same issue that I encountered was:
ios/Pods/boost-for-react-native/boost/operators.hpp:97:10: 'boost/config.hpp' file not found
To fix it, you need to clear cocoa pods and cache and re-install.
Delete cocoa pods cache: rm -r ~/Library/Caches/CocoaPods
Delete the Pods folder and the Podfile.lock usually located in <project_root>/ios.
Reinstall pods: pod update
You must delete cache from wherever ios concerns; Here's the process I do to clear its cache:
Delete npm cache: npm cache clean --force
Delete All ios temp files: cd ios && rm -r Pods/ Podfile.lock {yourProject}.xcworkspace
Clear Cocoapods Cache: rm -r ~/Library/Caches/CocoaPods
now install pods via npx: cd .. && npx pod-install
So I was also getting the error boost/operators.hpp file not found but my issue was from using :path instead of :podspec in my Podfile. I'm working on an integrated RN app inside of a Native iOS app, so I was manually adding the pods to the Podfile (something I will not do from now on).
pod 'boost', :path => ...
instead of
pod 'boost', :podspec => ...
It might not be the most common fix but hoping it helps someone.
I resolve the problem.
boost_1_63_0.tar.gz
double-conversion-1.1.6.tar.gz
folly-2018.10.22.00.tar.gz
glog-0.3.5.tar.gz
These files are not completely downloaded due to network reasons.
The file url is :
{your proejct}/node_modules/react-native/scripts/ios-install-third-party.sh at lowest line.
When I upgraded RN 0.64 -> 0.66, the following helped me:
Delete cocoa pods cache: rm -r ~/Library/Caches/CocoaPods
Delete the Pods folder and the Podfile.lock usually located in <project_root>/ios
Delete Pod folder in <project_root>/ios
yarn add react-native-reanimated#2.2.3
pod install

Someone ran 'pod update' and now my app crashes with podfile.lock issue

We have gone through all the steps a million times:
$ sudo gem install cocoapods
$ rm -rf Bizzy\ Books.xcworkspace
$ pod install
Deleting derived data... changing build settings...
NOTHING is working! And all because one guy ran "pod update" and then didn't know what to do after that!
This is the error code:
PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock
/Users/Owner/Library/Developer/Xcode/DerivedData/Bizzy_Books-ajpeiroanshownarpormfcnuuvik/Build/Intermediates/Bizzy\
Books.build/Debug-iphoneos/Bizzy\
Books.build/Script-76499205B9A6D7551C8D0832.sh
cd "/Users/Owner/Desktop/Bizzy Books"
/bin/sh -c \"/Users/Owner/Library/Developer/Xcode/DerivedData/Bizzy_Books-ajpeiroanshownarpormfcnuuvik/Build/Intermediates/Bizzy\
Books.build/Debug-iphoneos/Bizzy\
Books.build/Script-76499205B9A6D7551C8D0832.sh\"
diff: /Podfile.lock: No such file or directory error: The sandbox is
not in sync with the Podfile.lock. Run 'pod install' or update your
CocoaPods installation.
I am looking for somebody that knows what they are doing on this!
Plus, people are blaming me for having "old code" which is only like a week or two since the last pod install in which I had no problems. And there are no errors shown with the code, only with the podfile.lock issue.
And people are downloading from Github and saying it works fine therefore I have no problem, which doesn't help me, because when I pull from Github, it makes no difference, showing the same error!
Here is the github repository:
https://github.com/caldwbr/Bizzy-Books-iOS
Well I finally got it working.
I opened the folder for my app and deleted Bizzy Books.workspace, Podfile, Podfile.lock, and the Pods folder, and emptied the trashcan. (Fairly important, if you don't want to see a slew of red untracked files hanging around after you do 'git status')
Then I navigated inside terminal to this same folder and ran:
git fetch --all
git reset --hard origin/master
Then I tested, and it worked!
I had been doing "git fetch --all" followed by "git pull --hard origin master," but I needed to do "git fetch --all" followed by "git reset --hard origin/master" and MAKE SURE NOT to do any "pod install" or "pod update"! That is the command that is giving me grief!
So thankful this is fixed!!!
There must be some incompatibility with a newer version of on of the pods in my podfile that just isn't working, hence I have to go back to the older version of that pod (not of cocoapods itself I don't think). Or there may be an issue with podfile.lock being funky as when you run 'pod update' or 'pod install' it generates a new podfile.lock file.