So suddenly my project stopped working and I have no idea why and I'm running out of ideas.
I've found some blogs 1 2 and similar requests 1 2 3 for help but nothing seems to work for me. I may be doing something wrong though.
running xcode 13.4.1
I've got 4 distinct errors
Command EmitSwiftModule failed with a nonzero exit code
error: accessing build database "/Users/myuser/Library/Developer/Xcode/DerivedData/App-btdfdbatbdurmeawknwdwmjrqpsw/Build/Intermediates.noindex/XCBuildData/build.db": disk I/O error
Virtual filesystem overlay file '/Users/myuser/Library/Developer/Xcode/DerivedData/App-btdfdbatbdurmeawknwdwmjrqpsw/Build/Intermediates.noindex/App.build/Debug-iphoneos/App DEV.build/all-product-headers.yaml' not found
/Users/myuser/myapp-ios-app/App/UI/Feed/FeedVC/FeedVC.swift:11:8: No such module 'SDWebImage'
I believe the EmitSwiftModule is related with not being able to handle the pod therefore causing the issue in the "all-product-headers.yaml" which is generated to fetch all the pods headers?
So assuming that all things in derived date are as they should be (because i've deleted it) I tried to focus on why is the pod no longer compiling. To my co-worker is working fine. Maybe he will have the same issue if he deletes the derivedData? Maybe we are using some older version files?
Some things I've tried:
clean the project
reset pods cache
delete derived data folder
update the pods
clean xcode preferences
for this pod they say we should add :modular_headers => true in pod file
re download the project clean to another folder
instead of cocoapods use the package manager for SDWebImage
due "all-product-headers.yaml" issue i read here that i could just add a header to my project
I've tried to create a project from scratch and just use the same pods and the project seems to run fine. But this is not a solution.
Can someone please help me? Any ideas?
Related
I try to add Firebase to my project but on build stage this error appears.. where could the problem be? The strange thing is that the error appears in this particular project. When I tried to install Firebase to an empty project, there was no error.
I just dealt this issue as well, and this is what I tried.
First, listening to the comments above and I made sure that I was opening the .xcworkspace
Second, I would suggest completely cleaning your project including clearing derived data. Additionally, you can try running pod deintegrate and then trying pod install fresh, reinstalling everything fresh.
I was able to get my project running after doing the latter of these two.
I used Matthew S.'s solution above to fix this problem. I'll just add that I originally had a "Workspace Integrity - Couldn't load project" issue when I opened XCode today which seems to have resulted from Pushing the project to my git repository without also pushing the associated pods. When I Pulled the project back down from the repository I got a slew of errors including the one mentioned in the subject of this post.
So to summarize:
I got this error: "Workspace Integrity - Couldn't load project"
To correct:
Pull project from git repository
Delete derived data
Clean and build project
pod deintegrate
pod install
Thanks Matthew for saving my morning. SEEEK.
I constantly get an error "No such module Crashlytics" and I usually resolve it with hours of cleaning build folder, reinstalling everything, running pod install, etc, but I'm getting tired of this and want to fix the problem once and for all.
My podfile contains this entry:
pod 'Crashlytics', '~> 3.14.0'
I suspect the issue may be that my project is in an icloud directory and sometimes it doesn't download everything locally in an attempt to save drive space, but either way here is what I am seeing and would like some help:
My pods in navigation tree (notice Crashlytics)
Now what's interesting is that when I go to add the framework directly (Link Binary with Libraries) that all the other modules are there in my Pods location except Crashlytics!
So here you see it's not there in Pods!
Any ideas what's going on? I suspect this is an important reason why it is not seeing this.
Thank you!
Try to do the following:
Delete all 4 pods related files:
Podfile
Podfile.lock
yourprojectname.xcworkspace
Pods folder
Then reinstall everything again with pod init and pod install
I've got this error after I installed firebase podfile:
Build/Products/Debug-iphonesimulator/Guess The Code 2.app/Frameworks/GoogleUtilities.framework'
I tried this: Xcode 10 Beta 3: Command PhaseScriptExecution failed with a nonzero exit code but nothing has changed.
I also tried to install GoogleUtilities pod separately but the error remained.
What can I do?
Podfile
pod 'Google-Mobile-Ads-SDK'
pod 'GoogleMobileAdsMediationUnity'
pod 'GoogleMobileAdsMediationAppLovin'
pod 'SAConfettiView'
pod 'Firebase'
Xcode 10 beta 6
Swift 4.2
I had the same problem.
I set 'test target signing Team' and I resolved the problem.
This issue might be linked to keychain service. To solve open keychain lock the login and unclock it again by entering you mac passcode.
I hope this helps someone. I was having the same issue. Creating a brand new Xcode project. Installing the Firebase using pods. Adding the GoogleService-Info.plist to the project but it was failing on it. This might not solve your issue at all but you can develop locally while a more permanent solution shows up.
I found that the script Pods-[ProjectName]-frameworks.sh in the Pods > Targets Support Files > Pods-[ProjectName] > Pods-[ProjectName]-frameworks.sh is trying to re sign the files for the project and it can't retrieve the proper identity. I temporary solved this and I am able to code and run the code locally by commenting by adding the '#' character in the line in the script that goes:
code_sign_if_enabled "${destination}/$(basename "$1")"
Like I said this is just a temp solution until I dedicate time to look into it. At least I can keep coding now. I hope it helps someone.
I've tried everything. EVERYTHING. I have no. idea. what Im doing wrong here.
Ive downloaded test projects and followed every step under manual installation AND install using pods here: https://github.com/PureLayout/PureLayout#problems-suggestions-pull-requests
I already have Parse and some other modules installed via pods so I first went to pods. I first went to my pods file and wrote
use_frameworks!
pod 'PureLayout'
JUST as the working sample projects did. I then navigated to my project (I think I did this right - went to terminal did cd Desktop then cd my project name, didn't think I had to cd anywhere else) and ran pod install . After this nothing happened in terminal (I got no response no matter what I did) and no PureLayout files were added to my project.
I still got no such module Purelayout when trying to trying to import PureLayout so then I tried manual.
I have dragged the files here https://github.com/PureLayout/PureLayout/tree/master/PureLayout/PureLayout into my project and imported in my bridging header:
Tell me if Im missing something. I still get no such module - even checked in my build settings that it had the right bridging header. I can continue without this and have no ideas - What am i doing wrong?
Is this an impossible problem?
I'm trying to utilize the four Examples that ship with RestKit Version 0.20.1 Currently trying to Build RKSearchExample. The Build "succeeds" but no simulator appears and I get two warnings
1st one - Target Intergrity - The file "Pods-ios.xcconfig" couldn't be opened because there is no such file. ....
2nd one - Target Integrity - The file "Pods-ios.xcconfig" couldn't be opened because its path couldn't be resolved. It may be missing"
I assume that this file is missing and even though the Build succeeds with only warnings, it missing is causing the project to not actually complete its Build.
Does anyone have any idea where to find this file? Has one built the Examples included in RestKit successfully?
Thanks!
Came across same problem. Solved it by
Make sure .pch file is updated and missing frameworks are added to Build Phases (See 'Adding Frameworks to the Precompiled Header File' in https://github.com/RestKit/RestKit/wiki/Installing-RestKit-v0.20.x-via-CocoaPods)
Close the workspace, re-run '$ pod install' in the project directory,
Re-open the project (using .xcworkspace), do a Clean and Build.
Hey i had this same problem, I was getting the following error when running pod update however i didn’t realise the update wasn’t working.
$ pod update
Analyzing dependencies
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `open': No such file or directory
It was because I forgot to run "pod setup" after installing cocoapods.
I ran pod setup from the terminal, followed it up with pod update (or pod install) and everything went to plan.