Posts

Showing posts with the label macos

Zipalign - Command not found - MAC terminal

Zipalign - Command not found - MAC terminal When I try to run Zipalign on an apk I get the error "Command not found" "Command not found" I am not that familiar with using terminal commands on the MAC but I have navigated to the SDK/Tools folder and run the following command: zipalign -v 4 Project1.apk Project1-aligned.apk I get Command not found I have tried placing the apks in the Tools folder and same result. Can someone help me to understand where the apks should be located and where I should run zipalign from? Thanks, I am very frustrated about this as it seems so simple. 17 Answers 17 Perhaps the current directory is not in your path? Try adding "./" before your command so ./zipalign -v 4 Project1.apk Project1-aligned.apk I will try, thanks. I will also include the full path to the apk. – Bill Mar ...

Read file on the same folder as the Unity Application on MacOs

Read file on the same folder as the Unity Application on MacOs I am trying to find a way to read files that are in the same folder on my Unity build. It works perfectly on Windows, but MacOs don't find them... For now I have to put my files into the contents folder of the application, then use Path.Combine(Application.dataPath,fileName) Does anybody have an idea? Thank you! Where did you put the file you want to read? From the Editor? If so, where in the Eitor? – Programmer Jul 2 at 10:42 By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Xcode Download? [closed]

Xcode Download? [closed] I just upgraded to OS X Mavericks, and I am very excited to be able to use all the new Mavericks technologies. I have just one problem: Where can I download Xcode? It is not listed in either the updates page in the Mac App Store, or at Apple’s developer website. Please tell me that I do not have to be a paid developer-program subscriber to download this update! The real problem is not with Xcode itself, but rather with the 10.9 SDK. Without the header files in the SDK, I cannot tell what the APIs are. As I do not know what the APIs are, I cannot use any developer tool (even those not based on Objective-C). I also noticed that Apple has not yet updated the Mac Dev Center with info for Mavericks, despite its public release. It is entirely probable that Apple is simply lagging behind with updating the developer website following today’s announcement. This question appears to be off-topic. The users who voted to close gave this specific reason: ...

Sometime mac keyboard dosen't work i have to type from simulator keyboard

Image
Sometime mac keyboard dosen't work i have to type from simulator keyboard I googled it and try many options but doesn't get success i am working on two apps at a time so when i run one app. mac keyboard works but when i run another app it stop working. i have to type from simulator keyboard i tried Hardware>Keyboard>Connect Hardware Keyboard but doesn't work and sometimes it work i am able to type from mac keyboard in same case. i am using xcode 9.2. I also tried this question Not able to type in textfield in iphone simulator using Mac Keyboard? any help will appreciate Hardware>Keyboard>Connect Hardware Keyboard 2 Answers 2 If you delete the following file and restart Xcode it should work. ~/Library/Preferences/com.apple.iphonesimulator.plist Or you can try this: https://stackoverflow.com/a/47696048/413877 This worked for me Xcode 9.3: Simulator app > Quit Simulator Simu...

Terminal -bash: command not found errors

Terminal -bash: command not found errors I messed up something in my programming a few days ago that screwed up my terminal. My terminal now gives me the a bash error message with basic functions like ls, cd, or ssh. The error looks like this: -bash: ls: command not found , where the "ls" can be replaced with any shell command. The only way I have found to make my terminal function, is by inputting: export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin" into ever terminal window I open, which can get very tedious. It also refuses to run Python or Jupyter unless I type the aforementioned command in the terminal window first. Go files also fail to run in terminal, and gives me a similar error message: -bash: go: command not found. This can be overcome by inputting: export PATH=$PATH:/usr/local/go/bin into the terminal window first. I'm really worried about what is going on in my computer, and need my terminal to keep functioning in order for me to finish and pass th...

Not able to switch java home properly in mac

Not able to switch java home properly in mac I have two versions of Java in my mac and I am trying to switch from 1.8 to 1.7 for compiling one of my project which has 1.7 specific contents. Though I ran the following commands in the terminal: $ alias setJdk1.7='export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)' $ setJdk1.7 With that, I can see the proper version in java -version and mvn -version. $ java -version java version "1.7.0_181" Java(TM) SE Runtime Environment (build 1.7.0_181-b09) Java HotSpot(TM) 64-Bit Server VM (build 24.181-b09, mixed mode) $ mvn -version Apache Maven 3.0.5 (...) Maven home: *mvn path* Java version: 1.7.0_181, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_181.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.13.5", arch: "x86_64", family: "mac" However, the /usr/libexec/java_home still seems to be pointing to th...

How to run ~/.bash_profile in mac terminal

How to run ~/.bash_profile in mac terminal So I'm installing some things for coding and personal usage, and I need to run this in the terminal (I'm on Mac if you didn't read the title). ~/.bash_profile ~/.bash_profile It just says permission denied, Im running OSX 10.8.4 Mountain Lion. How do I bypass this? You have python tagged, which is inappropriate. I'd like to make sure you aren't putting python in the file before removing the tag without comment? – Tom Kerr Sep 16 '13 at 1:15 looks like he's trying to set up python environment variables. – Мати Тернер Sep 16 '13 at 2:01 6 Answers ...

CMakeLists C++ Beginner

CMakeLists C++ Beginner I've started playing a little bit with C++ and to make it happen I decided to write a simple game engine. For this purpose, I'm using CLion as my IDE and it works all good but adding libraries is just a nightmare. First I've installed all required libraries like glew, glfw or glm using brew, all went fine. Then I spent almost 2 hours to get it to work on my project. My biggest mystery is the reason why it works, I've worked with build systems in java, python or golang and everything was always clear to me. However, I have no idea why it works the way it works and I'd love to know! Here is my CMakeLists file. cmake_minimum_required(VERSION 3.10) project(untitled2) find_package(GLEW REQUIRED) find_package(GLFW3 REQUIRED) set(CMAKE_CXX_STANDARD 17) add_executable(untitled2 main.cpp) target_link_libraries(untitled2 ${GLEW_LIBRARIES}) target_link_libraries(untitled2 glfw) Now I have a few questions: 1. Why am I able to use GLM library without inc...

Emulator: Warning: Quick Boot / Snapshots not supported on this machine

Emulator: Warning: Quick Boot / Snapshots not supported on this machine I am starting to learn android but havent been able to get anywhere. I downloaded android studio as per instructions and im trying to set up an AVD. I am using a Mac Air(macOS High Sierra) with java 1.8.0_51. The moment i launch an AVD there is a warning in the event log: "Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release." The emulator just gets stuck on the loading page. So far i have tried to : 1. Reduce AVD Ram size 2. Increase AVD heap size 3. change to "software" to avoid issues if any with my graphics card 4. Install/ delete many versions of phones/api levels for avd In the Logcat logs i see the following errors: 03-09 17:27:15.544 0-1114/? I/lowmemorykiller: No kernel memory.pressure_level support (errno=2) 03-09 17:27:15.545 0-1114/? E/lowmemorykiller: Kernel does not s...

Cannot connect to Azure Point to Site VPN from MAC

Cannot connect to Azure Point to Site VPN from MAC I need to establish a p2s connection from a Mac against Azure. From Azure I've downloaded the vpn client zip file with a certificate inside: VpnServerRoot.cer. I can import the certificate in keychain, but when I create the vpn on network preferences, the certificate is not shown. After reading many documents, I've found that apart from the root certificate, a client certificate is needed. This client certificate should be generated from the root certificate. The Microsoft documentation does not include how to do that in Mac (which makes sense). So my question is how do I create a client certificate from the root certificate in Mac? Thanks! Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault. – tambre ...