I'm new to RestKit and I'm trying to add it to my existing iOS Project - following this tutorial.
After installing it as a Git submodule (I'm not using CocoaPods as I already have multiple plugins manually setup) and adding the linker flags, search paths, I'm not able to build it.
Nothing appears in the Issue Navigator, but on the Report navigator I get these errors:
(Check Dependencies)
The file "Pods-RestKit.debug.xconfig" couldn't be opened because there is no such file.
(Run custom shell script 'Check Pods Manifest.lock')
Diff: /../Podfile.lock: No such file or directory
Diff: /Manifest.lock: No such file or directory
The sandbox is not in synch with the Podfile.lock. Run 'pod install' or update your CocoaPods Installation.
After this I tried to run 'pod install' in the subdirectory for RestKit, it installed with success, and when I then try to run the project, I get a 'normal' error that says:
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods-RestKit
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods-RestKit is not an object file (not allowed in a library)
Been stuck at this for a week so would really appreciate any assistance - I've tried researching extensively online but can't find any solution this this.
Related
So I'm needing to install SwiftLint for a project and I installed it as an SPM package from their repo here: https://github.com/realm/SwiftLint.
Shortly after installing it, I go to build the project and get this error:
/Users/MyUser/Library/Developer/Xcode/DerivedData/Project-caihxbhbecuvjfdnnwkmygqurxhn/Build/Intermediates.noindex/Project.build/Debug-iphonesimulator/Project.build/Script-89127C271F8EAAD2009335C8.sh: line 2: /SwiftLint/swiftlint: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
I'm not very experienced with Packages so this is all new to me but I can't seem to find any documentation on this particular error, or if there is something else I'm missing in the installation. I've tried removing and reinstalling the package, deleting DerivedData and cleaning the build in every combination/order you can think of. Currently running Xcode 13.2.1 and a target of iOS 14.1.
I'm having lots of trouble installing the 'Parse' Cocoapod library/framework on Xcode. (version 10.3)
What I did:
After initializing a podfile with "pod init", and adding "pod 'Parse'" into the file, I ran "pod install" from terminal and integrated the pod into Xcode. There are no compiler errors and the pod library is showing up and looking fine with autocomplete working on it as well
The issue:
Upon trying to run the app, it gives me an error:
Command PhaseScriptExecution failed with a nonzero exit code
More specifically, it gives me:
[filepath].../Pods-Real Estate App-frameworks.sh: eval: line 131: unexpected EOF while looking for matching `''
Things I've tried already:
Completely reinstalling and reintegrating pods
Restarting Xcode
Restarting my computer
Unlocking and relocking the login keychain
I tried installing pods and bolts just by downloading the framework files but they generated different errors (I think because the two frameworks weren't linked together properly doing it that way? I couldn't figure out how to fix that either)
Weird solution that I don't even know how I came across:
The issue was that a directory that contained my project had an apostrophe in it. I fixed it by renaming the directory, and then deleting the derived data folder in my project, cleaning the project and then running it.
I am Integrating Google map in my app by using Cocoapods. Cocoapds installed successfully in my Project which I created locally in my machine, and showing GoogleMaps.framework and its all header files in that. After that I had compressed (zipped) my project and given to other member for import to SVN repo, and he had import project from windows machine. Now when I checked out Project and build and Run then I got following build error. I had resolved it by using terminal command ‘pod install’
PhaseScriptExecution Embed\ Pods\ Frameworks /Users/sw.sal/Library/Developer/Xcode/DerivedData/MyPro-hfgbmtnudtrrqtbghtzkgaueuugm/Build/Intermediates/MyPro.build/Debug-iphonesimulator/MyPro.build/Script-B728B15E1844D49B5CB2A981.sh
cd "/Users/sw.sal/Documents/My Project/Vi P/Project/SVN Project"
/bin/sh -c /Users/sw.sal/Library/Developer/Xcode/DerivedData/MyPro-hfgbmtnudtrrqtbghtzkgaueuugm/Build/Intermediates/MyPro.build/Debug-iphonesimulator/MyPro.build/Script-B728B15E1844D49B5CB2A981.sh
/Users/sw.sal/Library/Developer/Xcode/DerivedData/MyPro-hfgbmtnudtrrqtbghtzkgaueuugm/Build/Intermediates/MyPro.build/Debug-iphonesimulator/MyPro.build/Script-B728B15E1844D49B5CB2A981.sh: line 2: /Users/sw.sal/Documents/My Project/Vi P/Project/SVN Project/Pods/Target Support Files/Pods-MyPro/Pods-MyPro-frameworks.sh: Permission denied
But Now I got this in my Project that it builds successfully but missing all header files in Pods->GoogleMaps.framework. I had attached the screen shot also.
Please someone guide me how I can Integrate all frameworks with all header files in Cocoapods after checkout Project from SVN.
I'm trying to add Fabric to my project, which is using CocoaPods with Carthage. What I did:
In Fabric app, I've created a new app
In the project I've created new run script called 'Fabric', copied the code from Fabric app (the script is the last script in my project!)
Because the framework file couldn't be found, I've added proper path to Framework Search Paths.
I've also added Fabric framework to my project Link Binary with Libraries stage.
The project still does not build. The error:
2015-07-14 10:51:30.161 run[46263:967908] Fabric.framework/run 1.3.16
2015-07-14 10:51:30.169 run[46263:967908]
Fabric: dSYM Error
Unable to process MyApp.app.dSYM at path
/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gmgvycoixcnkriauasdffkzvdg/Build/Products/Debug-iphonesimulator/MyApp.app.dSYM
Make sure your project build settings are generating a dSYM file.
DEBUG_INFORMATION_FORMAT should be set to dwarf-with-dsym for all configurations.
This could also be a timing issue, make sure the Fabric run script build phase
is the last build phase and no other scripts have moved the dSYM from the location Xcode generated it.
Command /bin/sh failed with exit code 1
What is wrong..? How to fix it?
Got it. When moving framework to different folder I forgot to change run script from:
./Fabric.framework/run ...
to:
./Frameworks/Fabric.framework/run ...
Everything is working now.
I'm looking into cartfile. Can't wait to "simply create a cartfile" like all the instructions say to do.
Only... how do you "simply" create a Cartfile?
I've created a plain text document, named it cartfile and copied some dependencies in it.
Ran carthage update inside my root project directory
Get this error: "No such file in directory"
Downloaded an example carthage project and the Cartfile is actually an executable.. So how do I "simply create" a Cartfile, cause there aren't any instructions on how to
From the command line, navigate to your project directory.
touch Cartfile
Now the Cartfile is created, make it executable with:
chmod +x [YourDirectory/Cartfile]
You can open it with any text editor. Then insert whatever library and source you want (Example: github "SwiftyJSON/SwiftyJSON" >= 2.1.2)
Carthage Tutorial: Getting Started is a must read. It explains things much better than the Carthage documentation does.
Steps
In a Terminal, cd to the root directory of the project that you want to add the framework to. This should be the same directory as your *.xcodeproj file.
cd ~/Path/To/Your/Project/
Create an empty file called Cartfile like this:
touch Cartfile
Open that file with Xcode:
open -a Xcode Cartfile
Paste the framework info that you need into the Cartfile. For example:
github "stephencelis/SQLite.swift" ~> 0.10.1
Close the file in Xcode and in Terminal run the following command to make Carthage update the dependencies in your project. (You should still be in the same directory as your Cartfile.)
carthage update --platform iOS
Notes
Using the method above, there is no need to change the execution permissions of the Cartfile.
You will still need to add the framework link to your project before you can use it. See the tutorial I linked to at the top for more information.
Install by running below command if carthage is not installed.
brew install carthage
if you are using for the first time carthage
download the package first
Download the latest Carthage pkg and of course run it to install it.
and follow above steps
2 In a Terminal, cd to the root directory of the project that you want to add the framework to. This should be the same directory as your *.xcodeproj file.
cd ~/Path/To/Your/Project/
Create an empty file called Cartfile like this:
touch Cartfile
4.Open that file with Xcode:
open -a Xcode Cartfile
5.Paste the framework info that you need into the Cartfile. For example:
github "stephencelis/SQLite.swift" ~> 0.10.1
6.Close the file in Xcode and in Terminal run the following command to make Carthage update the dependencies in your project. (You should still be in the same directory as your Cartfile.)
carthage update --platform iOS
Cartfile is a usual text file without any extensions. You can create it using any possibilities like command line or any applications. This file is case sensitive.
If you create cartfile(from lower case) or Cartfile.txt(with extension) and run carthage update you get something like this:
2021-04-23 17:00:27.692 carthage[94911:3694738] INFO: fetch-response is unable to open the file /Users/alex/Library/Caches/carthage/fsCachedData/F1841822-AACC-4E8A-ACB0-D801D3C72063. Errno: 2
Failed to read file or folder at <some_path>/Cartfile: Error Domain=NSCocoaErrorDomain Code=260 "The file “Cartfile” couldn’t be opened because there is no such file." UserInfo={NSFilePath=<some_path>/Cartfile, NSUnderlyingError=0x7ff8f7727240 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
To check extension
Right click on Cartfile -> Get Info -> [Name & Extension:]
//you are able to remove the extension here