Universal Linking Validator (Branch) issue - ios

So I am trying to use the Universal Linking Validator on Branch's website. I downloaded the script and opened the terminal and entered:
$ bash ulv_script.sh
Then I dragged and drop the project’s .xcodeproj file into the terminal window the result was:
ulv_script.sh: No such file or directory
How am I suppose to get the link I need?
Here are the directions I am following:
https://dev.branch.io/getting-started/universal-linking-validator/guide/

Jonas from Branch here.
The error you are seeing is because your terminal is in a different directory then the script. You can get around this by using the cd command to navigate to the location of the script.
Alternatively, you can enter bash into the terminal, drag and drop the downloaded script into the terminal window, and then drag and drop your .xcodeproj file into the window. Using this method, you should end up with a command that looks like bash /Users/jbauer/Downloads/ulv_script.sh /Users/jbauer/Desktop/BranchStuff/Branch-TestBed-Swift/TestBed-Swift.xcodeproj Note the space between the path to the script, and the path to the Xcode project.
Feel free to ping me if you run into any other issues, and I'd be happy to lend a hand.

Related

How can I view the logs generated from the xcodebuild output?

I am currently downloading dependencies via Carthage. When it comes to error, I need to see the log details.
xcodebuild output can be found in /var/folders/fj/1kwwbqhx5r3d0dp1g1fgjwbw0000gn/T/carthage-xcodebuild.dCp7BC.log
Would you please help me hot to redirect to the logs using Terminals and Finder ?
You can use open like below. It will open the file with the default app of the extension.
open /var/folders/fj/1kwwbqhx5r3d0dp1g1fgjwbw0000gn/T/carthage-xcodebuild.dCp7BC.log
You can specify desired app with -a. For example below will open the file using TextEdit
open /var/folders/fj/1kwwbqhx5r3d0dp1g1fgjwbw0000gn/T/carthage-xcodebuild.dCp7BC.log -a TextEdit
Or you can just print it in the terminal using cat
cat /var/folders/fj/1kwwbqhx5r3d0dp1g1fgjwbw0000gn/T/carthage-xcodebuild.dCp7BC.log
Or you can just open the container folder in finder. Remember to delete the file name.
open /var/folders/fj/1kwwbqhx5r3d0dp1g1fgjwbw0000gn/T/

Swiftkotlin command line not found for converting Swift to kotlin

I am using Swift kotlin for converting swift code to kotlin which is working on Xcode project but when I am trying to execute from mac terminal it shows SwiftKotlin not found .
Github link: https://github.com/angelolloqui/SwiftKotlin
-bash: swiftkotlin: command not found
Vivek-Mac-mini:~ vivekrawat$
It looks like you need to install the package into
/usr/local/bin/
folder on your Mac, so the terminal can treat it like other command-line commands like cd, open, etc.
From Xcode, run the desired target and copy the generated executables (you can find it under the Products generated folder) in a directory with executable rights for later use. Typically, you could use:
swiftkotlin command line tool: /usr/local/bin/
To do so, you can try the following:
in the left pane of Xcode find the last folder called Products, open it. There should be a file with .app extension.
try to drag the file with .app extension from XCode to your desktop, holding alt key on the keyboard.
open Finder, click Shift+Cmd+G and paste /usr/local/bin/ into the prompt
drag the file from your desktop to that folder
restart the Terminal and try to use the command again

How to install phonegap-2.7.0 for ios?

I have downloaded the phonegap-2.7.0 from http://phonegap.com/,but i don't know how to install it,(There is a Makefile,but nothing happened when execute the "make" command in the terminal,i have already quit the xcode),would anyone help me?
http://docs.phonegap.com/en/2.7.0/guide_getting-started_ios_index.md.html
These instructions are pretty clear, even if the directory tree you get after extracting the zip file is not exactly the one they show.
After installing all the requirements:
extract the content of phonegap-2.7.0.zip wherever you want
go to lib/ios/bin and run the 'create' command with the suggested parameters.
open the finder and go to the directory you used as first parameter of the 'create' command
doubleclick the file with extension xcodeproj to open XCode and the project will be automatically created
To open the finder in the right folder you can use the command line:
open ~/workspace/yourProject
or
cd ~/workspace/yourProject
open `pwd`
my 2c

Starting new project with Cordova 2-7-0, cannot create in command line

I am trying to create a new porject with the latest version of cordova. I am following the instructions here but I get stuck at the Start New Project command line section
I follow the instruction where it says open the command line tool, drop the 'bin' file in and enter the following:
./create ~/Documents/CordovaXY/HelloWorld org.apache.cordova.HelloWorld HelloWorld
But when I hit enter all the command line says is
No such file or directory
Is there anyway to do this without using command line?
Thanks!
Using the command line is probably the easiest way to do it, so keep trying!
I would run just the command
./create
without parameters. If you get a warning message and a list of possible flags and parameters then this means that your problem is in the parameters
~/Documents/CordovaXY/HelloWorld org.apache.cordova.HelloWorld HelloWorld
and not the command itself.
My guess is that you have to create the CordovaXY directory.
Otherwise, double check that the 'Xcode Command Line Tools' are correctly installed. The page you linked states "Cordova uses the command line to create a new application project. To access the Xcode tools from the command line an additional download is required."
OK it was my stupid fault for not reading the instructions properly. I dragged the bin directory into the already open terminal window, instead of onto the Terminal Icon in the Dock

Can execute build_facebook_ios_sdk_static_lib.sh when attempting to create static, ARC-compliant facebook libraries

I'm in the process of adding the facebook SDK to an Xcode project. According to facebook, if it is an ARC-compliant project, I need to execute build_facebook_ios_sdk_static_lib.sh to create static libraries. My issue: I open the terminal app, cd to the location where the script exists and execute build_facebook_ios_sdk_static_lib.sh.
I get the following response:
-bash: :build_facebook_ios_sdk_static_lib.sh: command not found
I know the script is in the folder, b/c if I do an ls on the directory, I see the following and nothing else:
build_facebook_ios_sdk_static_lib.sh
Any suggestions?

Resources