My app works in xcode, copying files from its bundle to caches and executing shell/java using NSTask. When exported and run without Xcode, it cannot access those files. What Am I missing? I have iOS Developer Signing identity only, no Mac Dev account (yet).
2
There are 2 best solutions below
0
igraczech
On
This was actually a sandbox feature since OS X has it... that's why the app ran in developer mode (which has actually root privileges) without any issues and behaved erraticaly when running inside its proper sandbox.
Once I've acquired Mac Developer account besides my existing iOS developer program, the app works always as expected (both as Xcode Run and as regular app installed to Applications).
Related Questions in MACOS
- Error installing Nativescript on Mac M2 Sonoma 14.4.1
- macOS - Most secure way of a GUI SUDO_ASKPASS
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- ZSH function parameters conundrum
- how to make read only file/directory in Mac writable
- macOS BigSur - Unable to run bundled php version or brew php 8
- 9 Digit Addresses in Hexadecimal System in MacOS
- MacOS Bash-Script: while read p and echo
- How to make a range for tail rows on a categorized table in Numbers with JXA scripts?
- Cannot build a basic project with curl on Mac (M2) for Raspberry Pi Pico
- How to recover deleted files from create vite react project
- Can't run built SFML project from Xcode template
- React Native - RealmJS - Linker command failed with exit code 1
- How can I manually add a keyboard shortcut to a Shortcut Action Service directly via the system files, without going through the System Prefs GUI?
Related Questions in SDK
- DirectX 9 With No SDK Installed - How To Translate a D3DMATRIX?
- Error "_IframeMessenger_get Target Origin is not defined" when starting the project. Autodesk Forma SDK
- `android` Does Not Exist in `~/Android/Sdk/platform-tools`
- -> Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found
- Anyone know of javascript library to dynamically create mappings?
- Short time token with the Graph API and Facebook login through the iOS SDK
- I cannot install the dotnet-sdk-8.0.203-win-x64 version
- Im using mapbox sdk navigation v2 and have a problem with the cycling view
- Azure App Configuration - Replica for 429 HTTP responses
- Connected device (the doctor check crashed)
- Cannot find protocol declaration for 'TransactionHandlerDelegate'" (Swift/MAUI Interop)
- Flutter SDK: Files Deleted Automatically (e.g., dart.exe), Errors in Android Studio
- Mac Sonoma 14.4 Dotnet 8.0.203 SDK webapi https error
- No SDK on Intellij IDEA with jdk17 Installed
- Autodesk RCP, RCS files reading
Related Questions in OSX-YOSEMITE-BETA
- How to install Xcode 7 beta on OS X Yosemite 10.10.3?
- Reset Safari 8 in Yosemite to show Welcome/Splash screen again
- Compiling error with g++ 4.9 on OSX Yosemite
- Using 10.10.3 beta -- Applescript is totally borked
- Ios Screen Capture Yosemite
- how to upgrade from yosemite gm candidate to final version
- QtCreator + gdb on Mac OS X Yosemite doesn't give me source level debug info
- An error occurred while installing pg (0.15.1), and Bundler cannot continue
- iSight/FaceTime camera not working after upgrade
- MacOSX Yosemite: Using R in the Terminal - a gfortran error
- Trouble with watir web driver after installing OS X Yosemite Beta
- OSX Yosemite - JVM Shared library does not contain the JNI_CreateJavaVM symbol
- Xcode 6 under yosemite crash
- Xcode 6 GM not launching on OS X Yosemite
- CocoaPods with Xcode 5.1.1 and OS X 10.10 Errors
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Make sure the files are copied to the .app file after compilation.
If they are present, then you might be accessing them on the wrong path? Do you remember to use [NSBundle mainBundle] to get their path?
You can use something like this: