I had tried to compile pjsip library.but getting error. when run
$ cd /pjproject-2.5.5
$ ./configure-iphone
//error: -bash: -bash: ./configure-iphone: Permission denied
$ chmod +x configure-iphone //then i tried this
$ ./configure-iphone
//error:-bash: ./configure-iphone: /bin/bash^M: bad interpreter: No such file or directory.
Please give me proper guide line by steps to
run pjsip ios project.
To compile pjsip for iPhone
1. Download source code from one of the following link :
http://www.pjsip.org/download.htm
http://trac.pjsip.org/repos/wiki/Getting-Started/Download-Source
2. Create a new file config_site.h in the project folder /pjlib/include/pj/ with the following code:
#define PJ_CONFIG_IPHONE 1
#include <pjconfig_site_sample.h>
3. To Build PJSIP
Open terminal:
$ cd /path/to/your/pjsip/dir
$ ./configure-iphone
You may get the following problems:
a) Permission denied
Solution: preface the login with sudo
or login as super user using su command and the type following command
$ su
Password:
# chmod 777 configure-iphone
# exit
b) -bash: ./configure-iphone: /bin/bash^M: bad interpreter: No such file or directory
(This error may come because in the configure-iphone file every line may have been appended by a character $ or may be a carriage return symbol)
To check this do as:
$ vim configure-iphone
(It wil open the vim editor)
To see the last character press escape(ESC:)set list
To quit vim press Esc:q
Then Eliminate
$ tr -d '\r' <configure-iphone >FILE.new
(It will create new file with name FILE. Now after that delete the configure-iphone file and rename FILE to configure-iphone using the following commands:)
$ rm configure-iphone
$ mv FILE.new configure-iphone
(Again confirm that new created file has 777 permission if no then assign from su- super user)
$ ./configure-iphone
Again there may be error in ./configure-iphone:
Permission denied
Solution : Assign 777 permission to the whole folder.
- $ cd .. (Go to the parent folder in which the PJSIP folder lies)
- $ su (login as super user)
- # chmod 777 * (It will assign 777 permission to the whole folder and its content)
Alternatively:
- $ chmod u+x configure-iphone
Again run $ ./configure-iphone command. This time every thing should work fine.
4. To make
make dep && make clean && make
Source: http://gaurav-iphone.blogspot.com.au/2011/09/compiling-pjsip.html
To compile pjsip for iOS you need to execute following commands:
cd path_to_pjsip
./configure-iphone ( or sudo ./configure-iphone )
make dep && make clean && make ( or sudo make dep && make clean && make)
That's it, you now have pjsip compiled for armv7 architecture. You may also look in this tutorial for more details: http://www.xianwenchen.com/blog/2014/06/09/how-to-make-an-ios-voip-app-with-pjsip-part-1/
To integrate PJSIP with Xcode,follow these steps.
step 1: Download PJSIP project file(.tar.bz2 or .zip file) from this link http://pjsip.org/download.htm
step 2: Extract the files into your Required path of your MAC.
step 3: Open the project folder and you will see,there is pjlib folder is there. Go to the Path pjlib/include/pj/ and create config_site.h file and PASTE the following contents into the file.
#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>
step 4: Now save and close the file. And Open the Terminal Now.
step 5: Open your project path in the terminal by cd /your_pjsip_path/
For Example: cd /Desktop/pjsip_2.5.5/
step 6: Now build and configure project by following commands.
step 7: ./configure-iphone
step 8: make dep && make clean && make
step 9: Now you can oepn the project using xcode 7 by Go to the path /pjsip_folder/pjsip-apps/src/pjsua/ios/pjsua.xcodeproj and open with xcode.
(or)
To integrate PJSIP Library with Xcode 7, you must follow official PJSIP instructions from their official website.
Source:https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone
Related
I'm working on a IOS Game that I built using Unity and I'm trying to get it to build on Xcode. However I keep getting this Shell Script Invocation Error "/Users/masterolu/Downloads/ShoeJackCityBuilds/iOS/MapFileParser.sh: Permission denied".
I've tried to use chmod +x /Users/masterolu/Downloads/ShoeJackCityBuilds/iOS/MapFileParser.sh but for some reason my machine doesn't recognize the chomd command anymore. I tried to reinstall it by using sudo apt install --reinstall coreutils but in order to use apt I need a JDK(Java Developer Kit). So I install the latest JDK and when I try to reinstall chomd my terminal says "Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-15.0.2.jdk/Contents/Home/bin/apt" (-1)". At this point I decided it's best to come and ask for help.
Any ideas on how to fix this error in Xcode or how to install chomd so my app can run?
So, apparently Apple likes to disable the execution permission of all the shell scripts that have not been created on your machine (i.e. downloaded from web, cloned from repo) so what you have to do is to open a terminal inside the project folder and run chmod -x MapFileParser.sh, that should fix it.
I have also done it on the process_symbols.sh just to be sure it runs.
## EDIT ##
My solution for my gihub action was this as the -x version did not work correctly for my scenario.
- name: Update scripts permissions
run: |
pwd
sudo chmod 755 MapFileParser.sh
sudo chmod 755 process_symbols.sh
This works for me:
chmod 777 MapFileParser.sh
I am very new to react native. I have created a Hello World project and unable to run it on iOS. Every time when i run the project for iOS it throws the following error(s)
** BUILD FAILED **
The following build commands failed:
CompileC /Users/usman/FunZoneAppsProjects/{ProjectName}/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTShadowView+Internal.o Views/RCTShadowView+Internal.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/{ProjectName}.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/{ProjectName}.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/{ProjectName}.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
at checkExecSyncError (child_process.js:621:11)
at Object.execFileSync (child_process.js:639:13)
at Promise.then (/Users/usman/FunZoneAppsProjects/{ProjectName}/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5)
I have read many people resolved this issue with different fixes but none of them worked for me. What can be the issue? TIA
I think this is connected with the new xcode version. Try opening your project in xcode. Go to File->Project Settings and choose Legacy build. Then try to rebuild your project.
What worked for me on mac OS Big Sur and Xcode 12 was,
Delete package-lock.json file.
Run npm install and cd ios && pod install && cd ..
Then opened the .xcworkspace file from Xcode and it worked.
First of all you should be secure that brew, node and watchman are installed. After that, try to follow these steps.
Delete your actual project, close simulator, xcode and run on the path folder of your project watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean. Finally, close the command line
Create a folder in desktop named RNProjects. Open the command line and run cd Desktop/RNProjects.
Run in the command line react-native init myProjectName. You can name the project as you want. You should change "myProjectName" for the desired project name.
After installation is completed (it takes a couple of minutes), be sure that in the command line you are in the path RNProjects and then run cd myProjectName. If you gave the project a different name, just replace "myProjectName" for the real project name.
Finally, just run react-native run-ios. Let me know if you want to test it in a real iDevice.
EDIT 1
If brew, node or watchman are not installed yet, follow this
For HOMEBREW follow this link. you should paste that at a Terminal prompt. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
After that run brew install node
Then run brew install watchman
Then run npm install -g react-native-cli
Install Xcode command line tools follow this link
I have download linphone open source VoIP project from git.
Follow steps that given in link but i have stuck on one steps
Link host strings to simulator SDK
$ sudo ln -s /usr/bin/strings /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/strings
->I have checked below path
"/usr/bin/strings" and found that 'strings' not found and also another path not work '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/strings'
->When command run at that time it fail with below reason
ln: failed to create symbolic link '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/strings': No such file or directory
-> On Build I have received below output.
*******************************************************************************
This makefile is deprecated. Please see README.md for compilation instructions. Here are some equivalents:
Equivalent of make is: cd ../../ && ./prepare.py && make
Equivalent of make enable_gpl_third_parties=no is: cd ../../ && ./prepare.py -DENABLE_GPL_THIRD_PARTIES=NO && make
Equivalent of make enable_debug=yes is: cd ../../ && ./prepare.py -d && make
Equivalent of make enable_i386=yes is: cd ../../ && ./prepare.py all && make
Equivalent of make enable_zrpt=yes enable_opus=yes enable_ffmpeg is: cd ../../ && ./prepare.py -DENABLE_ZRTP=YES -DENABLE_OPUS=YES -DENABLE_FFMPEG=YES && make
*******************************************************************************
Below Link I have referred
1) https://libraries.io/github/mfrager/linphone-iphone
2)
https://github.com/BelledonneCommunications/linphone/blob/master/README.macos.md
3) https://ohthehugemanatee.org/blog/2015/10/01/how-i-got-el-capitain-working-with-my-developer-tools/
->I have checked below path "/usr/bin/strings" and found that 'strings' not found and also another path not work
Firstly you have to generate strings file at this path anyhow.
After that please check that whether your Xcode in Applications have name as Xcode.app or Xcode7.3.app
This makefile is deprecated. Please see README.md for compilation instructions.
For this error, it may occur because you are trying
$ make all
this command
Instead try this:
./prepare.py && make
For more info, regarding home-brews, etc, follow correctly(as you mentioned you'r following it):
building linphone-sdk
Also give all the permissions(rwxrwxrwx) to linphone-sdk directory and all other related files
I've followed this for iOS project.
Hope this will help you!
For HomeBrew make sure run:
brew update then
brew doctor
to double check. Also refer to http://www.successmonkey.co.nz/blog/building-linphone-for-ios
After the dependencies are installed run ./prepare.py and make to compile everything (had a easy fix in submodules/linphone/mediastreamer2/src/basemsfactory.cs) then use Xcode the build the final application.
I am following the Get Started with Contiki tutorial from the Contiki web page. However, when i try to do a
make login
I get the following error
../../tools/sky/serialdump-linux -b115200 /dev/ttyUSB0
../../tools/sky/serialdump-linux: 1: ../../tools/sky/serialdump-linux: Syntax error: Unterminated quoted string
make: *** [login] Error 2
I am using a CM5000 node which is compatible with sky platform. I am using Instant Contiki 3.0
The serialdump-linux file must be replaced if you got this error. Follow the steps:
Download the new serialdump-linux file from the web page:
https://github.com/cmorty/contiki/blob/pull/serialdump/tools/sky/serialdump-linux
Go to the directory /home/user/contiki/tools/sky
cd /home/user/contiki/tools/sky
Rename the current serialdump-linux file with the name serialdump-linux.bck
Copy the new serialdump-linux file in the directory /home/user/contiki/tools/sky
Change the permitions of the new serialdump-linux file with the command
chmod 775 serialdump-linux
Now, you can use the command make login with no problem
If you are using another platform different than sky, then you must replace the serialdump-linux file in the directory /home/user/contiki/tools/YOUR-PLATFORM
EDIT: Besides, you have to install one of the following packages:
sudo apt-get install lib32bz2-1.0
or
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6
Since serialdump-linux was compiled for 32 bit, and i have a 64 bit processor.
If you are working with Instant Contiki, you should update your local working copy:
cd contiki
git checkout master
git fetch origin
git pull master
Then if you already have the serialdump-linux binary, recompile:
cd tools/sky
rm serialdump-linux
make serialdump
mv serialdump serialdump-linux
chmod +x serialdump-linux
Then you should be able to run without any problem.
I am following this to set up pjsip for iPhone.
http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone
I follow up to where I run ./configure-iphone and everything is good, these run fine, I can get into the directory and run these.
$ cd /path/to/your/pjsip/dir
$ ARCH='-arch armv7s' ./configure-iphone
but then I need to run "make dep && make clean && make" and I get this:
make: * /Users/Me: Is a directory. Stop.
I have Xcode command line tools installed, what is my problem here?