Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Problems with Homemade Framework

Problems with Homemade Framework
Thread Tools
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Feb 2, 2004, 07:05 PM
 
I created a framework in XCode basically just to see what the bare minimum looks like. I only have one public method in it which does nothing. When I try to link against it, however, I get some error about accessing files in non-existent places. Here is the error I get:

Code:
dyld: /Users/user2/Software/build/Software.app/Contents/MacOS/Software can't open library: /Users/user1/Tarkin/build/Tarkin.framework/Versions/A/Tarkin (No such file or directory, errno = 2) Software has exited due to signal 5 (SIGTRAP).
In this case, user1 was the user I was logged in as when I created the framework, then I copied it over to user2's account and did the build from there. As I mentioned, there is actually nothing in this framework except for some header files and the standard (empty) binary. Why is the framework remembering a link to the user which created it? That doesn't seem right in any circumstance.

By the way, if I grab the Stuffit file from the Stuffit framework and copy it into my framework and rename it, all goes well . . .

Any clues?
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Feb 7, 2004, 06:10 PM
 
The framework should be in a Library/Frameworks folder. If you are trying to access it with two users, it might not be a bad idea to put the compiled framework in /Library/Frameworks.


Your statement of what you did is actually quite ambiguous. You are using ambiguous terms like "it" and "the build." If you can give an unambiguous description of what you did, we can help better.

BTW, I would recommend creating and building the framework in only one user account. Make sure you compile it as deployment. Then, put the framework file in /Library/Frameworks. Then, log in as the other user and add the framework from /Library/Frameworks to the application project. You shouldn't have any problems. Really.
(Last edited by Detrius; Feb 7, 2004 at 06:38 PM. )

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:56 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2