Re: migrating from 32bit to 64 bit can not run project
Re: migrating from 32bit to 64 bit can not run project
- Subject: Re: migrating from 32bit to 64 bit can not run project
- From: Britt Durbrow <email@hidden>
- Date: Thu, 03 Mar 2016 00:11:18 -0800
/jporter
hardcore_programmer
def
showpage
______________________________________________________________________________
Aaaand that’s probably horribly mangled postscript; but you’ll have to forgive me, as I haven’t had to read it in years, and have never had to write it in earnest…
But to answer your question… I’ve had all sorts of odd issues with migrating Xcode projects forwards over the years; so the first thing I would do is extract your source code files (including any xib/nib or other resource files) and rebuild the project, starting from a blank Cocoa Application template in Xcode.
Remove any default-generated files like MyDocument.m, etc.
Then, add back your source files and do a compile. Fix any warnings or errors; especially 64-bit warnings.
Also, if you aren’t doing it already, don’t name your NSDocument subclass MyDocument - it will just lead to confusion should the Xcode template’s version somehow get included along with your code (which is my guess as to what is going on here).
Oh, and was there a conversion to ARC involved?
Is this an open-source project; or otherwise is there some way we could get a look at the project folder? Not having it in front of me makes troubleshooting it kinda hard…
:-)
> On Mar 2, 2016, at 11:40 PM, Julie Porter <email@hidden> wrote:
>
> I mostly program in postscript, which I use for a general purpose language and MIDI parsing. From time to time I make a little coca app when I need to do interactive views or real world interaction.
>
> I have a working app that I wrote under 10.5 that makes a little framework, where I can parse and display the data in a scalable scrollable window. This app seems to run under 10.7 and Yosemite. Recently I discovered a bug that I wanted to look at and possibly fix.
>
> The parseable file is binary and has a type of .cis.
>
> When I went to run the app in X code on my 10.7 machine It defaulted to a 64 bit scheme which I did not create. When I attempt to run a blank window appears. When I open one of my .cis files I get an exception in documents.m in the function "(BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError"
>
> The program should be reading from the MyDocument class using the function "(BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)pTypeName error:(NSError **)outError"
>
> I switched to the 10.5 32 bit scheme and the code runs, but all my .cis files are grayed out and I can not open them.
>
> In clicking the little triangles on the folder views I see there are now duplicates of things like main.m and there are more than one info-plist files. Where did these come from? There are also duplicate xib files that are the ones that seem stubs. The blank window that appears in 64bit mode seems to be coming from one of these stubs.
>
> how do I get my little viewer program to open the files again? Do I need to copy my old settings into the new XIB files?
>
> -julie
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden