I have an iphone app (Swift project) that used to build using an older version of XCode, but I haven't built it for a year (I updated my XCode) and now I can't build it. I tried everything I found after googling the problem. I get this error every time I try to build it:
unable to spawn process (No such file or directory) (in target 'CombineDataSources' from project 'Pods')
I don't get any other error when I try to build the project, just this one.
I tried cleaning the build folder, deleting all pods (Library/Cashes/CocoaPods/Pods), deleting derived data (Library/Developer/XCode/DerivedData), deleting the xcworkspace file, then running pod deintegrate command in terminal, then running pod install command in terminal.
Analyzing dependencies
Downloading dependencies
Installing CombineDataSources (0.2.2)
...
Generating Pods project
Integrating client project
Pod installation complete! There are 14 dependencies from the Podfile and 20 total pods installed.
Podfile (part that contains the package that's part of the Xcode error):
pod 'CombineDataSources', '~> 0.2.2'
Podfile.lock (part that contains the package that's part of the Xcode error):
PODS:
- CombineDataSources (0.2.2)
DEPENDENCIES:
- CombineDataSources (~> 0.2.2)
SPEC REPOS:
trunk:
- CombineDataSources
SPEC CHECKSUMS:
CombineDataSources: 2315365365i8746865375
All pods were successfully installed, no errors, no warnings, but my project still gives the unable to spawn process error. Anyone has any idea what else I could try? Any help, any suggestion would be very much appreciated!
I cannot manage to find the spec 0.2.2 in neither the CombineDataSources nor in the specs repo;
The 0.2.2 release seems that doesn't contain the podspec.
In repo not found: https://github.com/CombineCommunity/CombineDataSources/tree/0.2.2
In cocoapod specs not found:
https://github.com/CocoaPods/Specs/search?q=combinedatasources&unscoped_q=combinedatasources
Only the latest version seems to contain a podspec. (0.2.5)
Could you try with to pod install or bundle exec pod install with that version?
Related
I have made an app which uses flutter_native_image, image_picker and image_cropper to take pictures and resize them at will. On Android build it works flawless.
While running XCode build to make this work on iOS, the build fails because packages cannot be found, although I followed (to my newbee knowledge) all necessary steps
Steps I did to create a clean build on iOS:
flutter clean
flutter pub get
pod deintegrate; pod install
In the log of the pod install, I can see that the necessary packages are being installed. See log below
#LMAC-C02F5662MD6R ~/work/git/boekelaar/bierpot/frontend/ios> pod deintegrate; pod install
Deintegrating `Runner.xcodeproj`
Deleted 1 'Check Pods Manifest.lock' build phases.
Deleted 1 'Embed Pods Frameworks' build phases.
- Pods_Runner.framework
Deleting Pod file references from project
- Pods-Runner.debug.xcconfig
- Pods-Runner.release.xcconfig
- Pods-Runner.profile.xcconfig
Deleted 1 empty `Frameworks` groups from project.
Removing `Pods` directory.
Project has been deintegrated. No traces of CocoaPods left in project.
Note: The workspace referencing the Pods project still remains.
Analyzing dependencies
Downloading dependencies
Installing Flutter (1.0.0)
Installing TOCropViewController (2.6.1)
Installing flutter_native_image (0.0.1)
Installing image_cropper (0.0.4)
Installing image_picker_ios (0.0.1)
Installing path_provider_ios (0.0.1)
Installing shared_preferences_ios (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 6 dependencies from the Podfile and 7 total pods installed.
After this install, I tried to build this on a physical device (iPhone X with iOS 15) and my XCode build failed here:
Screenshot of XCode build failure
Does anyone have any clue or ideas?
I want to use MapBox Search SDK for iOS. So I've followed this official documentation
Firstly, I've created ".netrc" in my /home directory as instruction and then add this -
use_frameworks!
target "TargetNameForYourApp" do
pod 'MapboxSearchUI', ">= 1.0.0-beta.3", "< 2.0"
end
to podfile. Then run pod install and got this in terminal -
Analyzing dependencies
Downloading dependencies
Installing MapboxCommon (9.0.2)
Installing MapboxMobileEvents (0.10.8)
Installing MapboxSearch (1.0.0-beta.4)
Installing MapboxSearchUI (1.0.0-beta.4)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `MapBox.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 4 total pods installed.
[!] Automatically assigning platform `ios` with version `12.1` on target `MapBox` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
But after running all this I'm getting this error in Xcode -
Framework not found MapboxCommon.xcframework
I've also tried this -
pod deintegrate && pod cache clean --all
pod install
but still the same error.
I think I've followed correctly the documentation and entered the secret API Key correctly. So why am I getting this error?
Edit:
In Project Targets the installed pods are not listed -
But In pod folder in Project directory -
there are other frameworks available which are not available in Xcode Pods Target.
Is that the pointing that the frameworks are not available in the projects?
Edit:
I've checked in my project directory if the Mapbox.common.xcfreamework present or not. And I found that file under pod/mapboxCommon folder
I've been opening my project using MapBox.xcworkspace which file was generated after running pod install.
You are facing this error because you are still trying to build the project file (xcodeproj), not the generated workspace by CocoaPods.
To resolve this issue, open up 'MapBox.xcworkspace' file and use that file to access your projects from now on.
My flutter app is working properly in iOS Simulator.
I have added fluttertoast by:
Adding it on pubspec.yaml
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.3
fluttertoast: ^7.0.1
Importing in my dart file
import 'package:fluttertoast/fluttertoast.dart';
So far it works as intended. BUT, when I move to a REAL iOS device, my iPhone XS, It won't compile.
I get this error:
fatal error: module 'fluttertoast' not found
#import fluttertoast;
What am I missing?
Suprisingly, I made it work just now.
What I did:
Tried to modified the podfile.
Tried to run it. Error due to podfile.
Revert podfile to original state.
Tried to build, pop-up asking something like 'would you like to use Xcode version or version on disk (I used Xcode version before which may have caused the problem)
I chose to use VERSION ON DISK.
Program is now working on real iOS device.
So whenever you get the pop-up asking "which version to use", always choose "VERSION ON DISK".
Thanks guys
I have face this issue very recently and the way I fix is like this. I change the pod file min deployment to 11 as needed by some of the pacakges I was using like flutter stripe. but the issue was that in Xcode the deployment was set to 9.0(not changing to 11.0). which was causing the issue to fix the issue follow the step.
1 : delete to /iOS/podfile.lock (if any)
2 : go to /iOS/podfile (platform :ios, '9.0') replace the 9.0 with version required for your packages/app.
3 : in terminal cd ios (pod install)
4 : edit the deployment info version here as well in Xcode
5 : run the app it will work if building archive build archive it will not throw the error.
Today I am facing the same problem, what I do is switch to the project ios folder, run this command:
pod repo update
pod install
from the log output, we can found the pod install the fluttertoast dependencies:
➜ ios git:(master) ✗ pod install
Analyzing dependencies
Downloading dependencies
Installing FMDB (2.7.5)
Installing Flutter (1.0.0)
Installing SwiftAudioEx (0.14.7)
Installing Toast (4.0.0)
Installing device_info_plus (0.0.1)
Installing flutter_secure_storage (3.3.1)
Installing fluttertoast (0.0.2)
Installing in_app_purchase_ios (0.0.1)
Installing music_player (0.0.1)
Installing path_provider_ios (0.0.1)
Installing shared_preferences_ios (0.0.1)
Installing sqflite (0.0.2)
Installing system_clock (0.0.1)
Installing url_launcher_ios (0.0.1)
Installing video_player_avfoundation (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 12 dependencies from the Podfile and 15 total pods installed.
[!] 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 `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).
then build the project in xcode success.
I Deleted podfile.lock
I Just Commented
platform :ios, '11.0'
enter image description here
Then I Run pod install
Unable to read the license file LICENSE for the spec GoogleDataTransport (3.2.0) when pod install Which result in GoogleDataTransport not found when try to build.
Earlier it worked but after I upload project to drive and from my windows computer I push to git and in another mac I cloned the repo and tried. That is the reason this happening.
I have tried cleaning pods, reinstalling updating, deleting podloc, pod directory and .xcworkspace. Non of them worked. I even copied the LICENSE file from another and pasted to GoogleDataTransport directory, nothing worked.
I tried lot of things but nothing worked until I do these:
pod deintegrate
pod setup
pod install
in terminal. and open .xcworkspace and Product -> Build
This SO answer helped me for that: How to clear or clean specific pod from the local cocoapods cache
I am using XCode 4.5.1 and iOS 6.0 base SDK.
Here is the error I am receiving:
i686-apple-darwin11-llvm-gcc-4.2: /Users/fahim/Library/Developer/Xcode/DerivedData/Currenthiphop-emodxxwwaiojlcboaxuodksuwuww/Build/Intermediates/PrecompiledHeaders/Pods-prefix-evibdktwbatdnbabmrlnderfsxxi/Pods-prefix.pch.dia: No such file or directory
There is only 1 file in the Pods-prefix-xxx directory:
Pods-prefix.pch.pth.hash-criteria
Here is my Podfile:
platform :ios
pod 'LibComponentLogging-Core'
pod 'LibComponentLogging-LogFile'
pod 'LibComponentLogging-qlog'
pod 'LibComponentLogging-pods'
pod 'Facebook-iOS-SDK'
pod 'RestKit'
Any help is appreciated. Thank you!
I actually found this solution right here that details opening up Xcode using normal means (Finder or the Dock), as opposed to using the open <Workspace>.xcworkspace command. I've always used Xcode from my dock, whereas the other developer (who couldn't build the project and was getting the error you were) was using the open command from the command line. Once he opened Xcode from the Dock, and manually browsed to open the project that way, he could build it successfully.
If you are using CocoaPods 0.18.0, this might be cause by CocoaPods and is fixed in https://github.com/CocoaPods/CocoaPods/issues/956
Extra quote in "$(inherited)" was the cause (https://github.com/CocoaPods/CocoaPods/blob/master/lib/cocoapods/generator/xcconfig.rb#L150). It should not be quoted. If you remove them from the xcconfig the project will build again. You may want to check your xcconfig and see if there are extra quote.
This issue can be caused by a few different factors but in my case and the case of some colleagues, this resolved the missing pch.dia
Uninstall CocoaPods and install 0.17.1
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 0.17.1 --verbose
Lock your Kiwi version to 2.05 if Kiwi is one of your pods:
target :KiwiUnitTest, :exclusive => true do
pod 'Kiwi', '2.0.5'
Clean your Xcode project including Derived Data. Close down Xcode, re-open the project and build.