xcode afnetworking.network no such file - ios

I'm working on an iOS App.
I'm trying to archive the app and I am encoutering this :
/Users/eenovinfogerance/Library/Developer/Xcode/DerivedData/Mercato-ascjcoguyyeglqcxxlubcypqxcdm/Build/Intermediates.noindex/ArchiveIntermediates/Mercato/InstallationBuildProductsLocation/Applications//Mercato.app/Frameworks/AFNetworking.framework: No such file or directory
I'm new in iOS, I tried to remove and add again pod 'AFNetworking', I also tried to make a pod install / update without success...
Thanks for your help !

Did you open the workspace file?
When you open the project file, xCode cannot find the pods. So you have pods installed you should open the workspace. Also when archiving the project.

Related

question about module import error of cocoapods

I am new to Swift and Xcode, I once import Alamofire, SwiftyJSON using cocoa pods in some tutorials, In the beginning, everything works fine, but recently every time I restart my swift project, I always get an error of No such module 'Alamofire', and the pods_proejctname.framework in Frameworks is lost but I didn't do anything:
However, the files in Pods in Xcode repositories doesn't show complete files and folder as finder shows:
If I opened the pods XCode project, the files in the products folder is missing, but I didn't do anything:
When I tried to fix it, this error somehow disappears. Can someone help me with this problem? please comment on my post if you need me to show further information about my project. Thank you!
you have lost path to your libraries in your project. Instead of configuring your path manually just remove your project from cocoa-pods and configure it again. Run the following commands on your project from the terminal
step 1
pod deintegrate
step 2:
delete Podfile.lock and yourproject.xcworkspace file manually from your project. also if delete the pods folder from your project if exist.
Step 3:
install pods again by running
pod install

xcode ios 'No such module GoogleSignIn'

I have an ios project that works good but after i push it to git hub and clone it again from other computer i get this error
'No such module GoogleSignIn'
No such module GoogleSignIn
Open your project in terminal app and do pod install
Another possible solution: open xcodeproj file instead of xcworkspace and check again
Try Following things:
Clean the Xcode project using Command + Shift + K
Install the dependencies again using pod install (if using Cocoapods)
Restart Xcode.
Open the .xcworkspace file rather than the original project file itself.
Delete .xcworkspace file and pods folder from directory and then install the pod dependencies using pod install
I had the same problem and the way I fix this is that every time I get this error, I just close the project and reopen it. While this happens, I think it saves on to my icloud.
For me, It was a Xcode bug on duplicate files.
Step 1: Copy the contents of the file in which there is the error of "No such module ****"
Step 2: Delete the File
Step 3: New a file and Paste the contents.
I got same problem
My mistake is that I put below pod
pod 'GoogleSignIn'
in wrong line in podfile
The right one should be below :
#Pods for ,YOUR APP NAME here,
Then I did install the pods again using the terminal and no more got the error
I hope you to get the solution

The application bundle does not contain a valid identifier IOS

I will use the camera in my app, and I add Camera Usage Description in Xcode
but a alert shows the error:
Someone help me, plus?
UPDATE:
My Bundle Resources:
RemoveDerived data for your project:
/Users/{Username}/Library/Developer/Xcode/DerivedData/{AppName}
If you have installed any cocoapods, please deintegrate using- $ pod deintegrate, and uninstall all the cocoapods versions and then delete all of the pod files (pod.lock, pod, xcworkspace) from your project. Now, go to your Xcode project and remove the pod file and framework file from there. Then reinstall your cocoapods version that you need and use your library. It worked for me.

Integarte/Install cocoapods to existing xcode project, objective-c or swift

I was looking for integrating cocoapods to my existing xcode projects.
I found these few post but they are based on issue instead my problem.
not able to acess installed pods framework
How to add cocoapods to existing workspace not project (this one is for work-space not project)
Making a CocoaPod from an existing Xcode project (this one is more on integrating swift with objective c project)
So I spending quality time i did for my project.
I am sharing step by step integration in my answer post.
please feel free to suggest and improvement.
happy to learn and share
Install CocoaPods on System
Step.1 Open Terminal and enter the following command:
sudo gem install cocoapods
Create Podfile for Project
Step.2 now you need to close Xcode.
Open Terminal at project's root folder
Step.3 Next, enter below command to create podfile:
pod init
Edit podfile
Note: Make sure we will edit podfile with Xcode not TextEdit etc.
Step.4 Type this command to open the Podfile using Xcode for editing:
open -a Xcode Podfile
Step.5 update pode file as shown below screenshot, save and close.
Install lib/framework
Now we have added our required lib/framework pod command
pod 'SwiftForms'
let's go for install
Step.5 Enter the following command in Terminal and hit Enter
pod install
Result screen
Thats it!! we have done.
Open Project with pods
Now go to the project folder,we can see that CocoaPods created a new project_name.xcworkspace file and a Pods folder.
open project_name.xcworkspace with xcode
your project structure should look like

Xcode not detecting Pods directory

I am working with a colleague on a Swift application and we are managing our versions through github. He has added some CocoaPods.
I have run
gem install cocoapods
pod install
The proj/Pods directory is populated with Pods, however on the very first import, Xcode fails to build with No such module Alamofire, and Xcode does not see anything other thenPods.debug.xcconfig and Pods.release.xcconfig in the Pods directory.
How can I resolve this?
You should open .xcworkspace, not .xcodeproj.

Resources