execute Xcode project on command line - xcode

I have a remote Mac server that I don't have remote desktop access. I have built my Xcode project on my local Mac and uploaded it to the remote Mac server. The problem is, how do I run the project on the remote Mac server using command line? I've uploaded all the source code and the built proj.xcodeproj to the remote Mac server. I've tried ./proj.xcodeproj but it doesn't seem to work.

You can't 'run' and Xcode project file. You can open it with Xcode. If you want to execute your code (which I assume you are trying to do) you have to build it first and then run the executable via Terminal.

Related

Flutter .exe Release not running on Windows

When I build flutter for windows with flutter build windows it generates a .exe file with its .dll files etc. However, running that file (.exe) gives me a white screen and my app is not running normally.
Running flutter run --release -d windows however builds my app normally and I can use it.
What is wrong here that running the .exe file is not starting my app properly?
This is my release folder structure when running flutter build windows:
Running the .exe file:
I was using sqflite_common_ffi on Windows and this was causing the issue. Initializing it was only valid for debug thus I had to add the sqlite3.dll to the release build folder. Then it worked fine like before when starting the .exe file.
Detailed description can be found here: https://github.com/tekartik/sqflite/issues/574

iFuse to access iPhone files on Windows

Trying to use iFuse to access iPhone files on Windows but not getting anyway. Would appreciate if people can share instructions/steps on how to get this to work?
iFuse to access iPhone files on Ubuntu works well; therefore, I am confident the issue is on Windows.
Using https://github.com/hooby3dfx/ifuse/releases/tag/win-dokany-0.1
Unzip test.zip in the above link
make sure iTune is installed
Install the specified Dokan version; doesn't seem to work with the latest Dokan version
Open a command window in Admin mode to run the command (e.g. ifuse tmnt --container bundle ID)
While the command is still running in the Admin window, open another command window to list the mounted directory

Mac: Sqlite3, OperationalError, unable to open database file, interacting with file over the local network

(Mac related)
sqlite3.connect('/Volumes/admin/Library/Messages/chat.db')
In my Python script I'm trying to have it interact with the messages chat logs from another machine on the same network. I know the path is pointing to the right place, and I know the script works on my machine and the remote machine when run locally, but when I try to run it from my machine using the logs from the other machine I get the following error:
sqlite3.OperationalError: unable to open database file
I used to get this error when I ran this script on my computer running Mojave locally, and to resolve it I had to give Terminal full disk access.
The remote Mac is running High Sierra so it has the access by default (confirmed by the fact I can run it locally on the remote Mac without issue)
Does anyone know how I can resolve this permissions problem with running a script that interacts with the logs from another Mac's library over the network?
Thanks for any help!

Mac 10.6 server / tomcat / jenkins / vncserver can not run in directory

First let me point out I'm a newbie with tomcat & Jenkins. This is the first CI server i have setup.
Im developing a flex app, and my goal is to have jenkins auto-build and run flexUnit tests after changes are pushed to github.
so far I have:
installed Jenkins (1.450) under tomcat (6.0.33) on a headless mac mini server running (10.6.8)
(basically following "Servlet Container Installation on Mac OS X Server (10.6)" #
http://wiki.wocommunity.org/display/WO/Installing+and+Configuring+Jenkins+Build+Server)
downloaded flexSDK, setup user authentication and configured github hooks.
at this point everything is working fine, jenkins will build a simple flex app once changes are pushed to github
now I'm attempting to build the flexUnit Sample CI Project. on first attempt it gets stuck waiting for a replay from Flash Player Debugger (projector). After some research I found flash player needs to run in a virtual display. So I installed Xvnc Jenkins/Hudson Plugin (https://wiki.jenkins-ci.org/display/JENKINS/Xvnc+Plugin).
Os X has a built in vnc server however it doesn't seem to communicate with Xvnc, so I installed tightvnc (via macports).
Then I setup the VNC password in my jobs workspace by running the following command in terminal
"sudo -u _appserver vncpasswd /Library/Jenkins/jobs/flexUnitSampleCIProject/workspace/.vnc/passwd"
And this is where I'm stuck, when I try to build flexUnitSampleCIProject I get the following error
FATAL: Cannot run program "vncserver" (in directory "/Library/Jenkins/jobs/flexUnitSampleCIProject/workspace"): error=2, No such file or directory
java.io.IOException: Cannot run program "vncserver" (in directory "/Library/Jenkins/jobs/flexUnitSampleCIProject/workspace"): error=2, No such file or directory
My gut feeling is this is a permissions issue since jenkins is running under the user _appserver
So I ran ran the following command in terminal
"sudo -u _appserver vncserver :6" and i get the following error
"vncserver: Wrong type or access mode of /Users/admin/.vnc."
However I read sudo doesn't inherit the home folder of the user (in this case "_appserver") and "su _appserver" dosen't work so I'm not sure where to go from here
Has anyone had any luck running flexUnit on mac server/tomcat/jenkins?
any ideas would be greatly appreciated
Have you told the VNC plugin where to find vncserver? It's under "Manage Jenkins" > "Configure System" > Xvnc.
However, depending on how the flash projector works, you may hit other issues because OSX doesn't really run X11, and in particular OSX versions of apps don't run X11;
See How to configure jenkins with xvnc on OSX Lion for maven project for more details on that.

how do i download source code using svn on OS X?

How can I get source code off the internet using SVN? I'm trying to download Oolong game engine for iPhone OS.
I am on Mac OS X 10.6 with XCode 3.2.2.
svn checkout http://oolongengine.googlecode.com/svn/trunk/ oolongengine-read-only
is the command I got from the Oolong Google Code page.
EDIT:
I've tried the command in Terminal. I don't know where the code ends up on my machine. I did not get any errors.
svn ships with Mac OS X, so all you need to do is open Terminal, navigate to the directory where you want the code, then you can copy and paste that line right in to terminal, hit enter, an voila, the code will be checked out on to your machine.

Resources