Git Product home page Git Product logo

Comments (14)

wmodes avatar wmodes commented on August 20, 2024 2

Further experimentation...

Once I signed the inform.app with the --deep command line option, I could actually run Inform for the first time from a build. Copying it from this obscure xcode location (/Users/wmodes/Library/Developer/Xcode/DerivedData/Inform-gzkwiqfmupwuzfcumalzutqxrtdm/Build/Intermediates.noindex/ArchiveIntermediates/Inform/InstallationBuildProductsLocation/Applications/Inform.app) to my apps directory, I was good to go.

So this indicates a couple things:

  • The build doesn't seem to work with the --local config options, i.e., "Sign to Run Locally"
  • The build DOES seem to work with the --develop config option with the Developer Team ID. But...
  • The final signing fails because there is some package in there that doesn't inherit the signing team from the xcode project

I haven't tested yet whether this solves the original problem of the slow text using the zoom header files you passed me.

Testing....

Turns out, nope.

Oh wait, I haven't done this little tidbit from Petter Sjölund yet:

If you add the lines

- (NSTouchBar *)makeTouchBar {
  return nil;
}

somewhere in IFSourceFileView.m and build Inform from source, the problem goes away.

Now when I rebuild...

IT WORKS. Daaaanm, thanks. This is the first time I've been able to work on my project in months.

from inform.

TobyLobster avatar TobyLobster commented on August 20, 2024 1

If you are willing to experiment a little:

Try unzipping the enclosed file in the 'zoom/build' directory (make the 'build' directory if you don't have it) and try building the Inform App in Xcode again.

zoom_build.zip

from inform.

TobyLobster avatar TobyLobster commented on August 20, 2024 1

It's a signing issue. From the output you quote: "GlkSound' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)". Sorry, I think you need an Apple Developer ID.

When I have time, I'll have to try the hack suggested above. If it works I'll get a new version out.

from inform.

TobyLobster avatar TobyLobster commented on August 20, 2024

I don't have a fix for this issue yet, but you might like to know about a possible workaround in v10.1.2:

  1. In Preferences->Editing, turn off 'Enable Styles'
  2. In Preferences->Colour, turn off 'Enable Colouring'

Obviously this turns off all the syntax highlighting so this is not a great solution. But I hope the text editing speed should be more acceptable.

from inform.

angstsmurf avatar angstsmurf commented on August 20, 2024

Also, if you build the Inform IDE from the source yourself, this hack (disabling the touch bar) still works:
https://intfiction.org/t/inform7-ide-slow-editing/49086/24

from inform.

wmodes avatar wmodes commented on August 20, 2024

I wondered if that hack still works. I've never built Inform from source and found Tony's instructions. Unfortunately, it skips over the entire code build which I've never done. Anyone have any pointers to completing that build?

from inform.

wmodes avatar wmodes commented on August 20, 2024

Well, I figured it out, but that didn't go well.

'interp_z3.h' file not found in interp.c:

#ifdef HAVE_COMPUTED_GOTOS
# define TABLES_ONLY
# include "interp_z3.h"
# include "interp_z4.h"
# include "interp_z5.h"
# include "interp_z6.h"
# undef TABLES_ONLY

from inform.

wmodes avatar wmodes commented on August 20, 2024

Well, I was willing to experiment. Thanks @TobyLobster for the pre-build zoom files. I tried variations on signing the source as Mac Developer, Apple Developer, and Sign to Run Locally because I didn't have an Apple Developer ID. All happily build (via Archive) successfully. However, the Inform.app seemed to quietly crash.

I tried going into Inform.app/Contents/MacOS and running Inform directly. I got:

MacOS % ./Inform
dyld[30694]: Library not loaded: '@rpath/GlkSound.framework/Versions/A/GlkSound'
  Referenced from: '/Applications/Inform.app/Contents/MacOS/Inform'
  Reason: tried: '/usr/lib/swift/GlkSound.framework/Versions/A/GlkSound' (no such file), '/Applications/Inform.app/Contents/MacOS/../Frameworks/GlkSound.framework/Versions/A/GlkSound' (code signature in <D3B99BC3-7415-383A-9666-C3FA969A61DF> '/Applications/Inform.app/Contents/Frameworks/GlkSound.framework/Versions/A/GlkSound' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/usr/lib/swift/GlkSound.framework/Versions/A/GlkSound' (no such file), '/Applications/Inform.app/Contents/MacOS/../Frameworks/GlkSound.framework/Versions/A/GlkSound' (code signature in <D3B99BC3-7415-383A-9666-C3FA969A61DF> '/Applications/Inform.app/Contents/Frameworks/GlkSound.framework/Versions/A/GlkSound' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/System/Library/Frameworks/GlkSound.framework/Versions/A/GlkSound' (no such file)
[1]    30694 abort      ./Inform

Looks like GlkSound didn't build?

Sad face. This is new territory, so apologies for what are probably noob errors.

from inform.

wmodes avatar wmodes commented on August 20, 2024

@TonyLobster, it seemed your --local param in config.py didn't do anything.

I thought it would be useful to have a --local param that set CODE_SIGN_IDENTITY to - which is apparently xcode's designation for "Sign to Run Locally"

When I configured the build with Sign to Run Locally and with my Developer Team ID (retrieved from my keychain), I no longer had the signing issue. However, I had another problem (below). Here's the modified configure.py

configure.py.zip

from inform.

wmodes avatar wmodes commented on August 20, 2024

Okay, when I ran the inform.app here's what I got (partial):

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: '@rpath/GlkSound.framework/Versions/A/GlkSound'
Referenced from: '/Applications/Inform.app/Contents/MacOS/Inform'
Reason: tried: '' (no such file), '' (code signature in <D3B99BC3-7415-383A-9666-C3FA969A61DF> '' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '' (no such file), '' (code signature in <D3B99BC3-7415-383A-9666-C3FA969A61DF> '' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adh
(terminated at launch; ignore backtrace)

So interestingly, GlkSound still had a signing issue.

from inform.

wmodes avatar wmodes commented on August 20, 2024

Interestingly, when i sign with my Developer Team ID using the --develop flag, the build fails at the last step trying to sign the inform.app with the following:

CodeSign /Users/wmodes/Library/Developer/Xcode/DerivedData/Inform-gzkwiqfmupwuzfcumalzutqxrtdm/Build/Intermediates.noindex/ArchiveIntermediates/Inform/InstallationBuildProductsLocation/Applications/Inform.app (in target 'Inform' from project 'Inform')
    cd /Users/wmodes/dev/inform-build/Inform/inform
    
    Signing Identity:     "Apple Development: [email protected] (WXH9UQURVG)"
    
    /usr/bin/codesign --force --sign D8C39DC04CC612A0B96F106603CA717C5D93F01C -o runtime --entitlements /Users/wmodes/Library/Developer/Xcode/DerivedData/Inform-gzkwiqfmupwuzfcumalzutqxrtdm/Build/Intermediates.noindex/ArchiveIntermediates/Inform/IntermediateBuildFilesPath/Inform.build/Release/Inform.build/Inform.app.xcent --generate-entitlement-der /Users/wmodes/Library/Developer/Xcode/DerivedData/Inform-gzkwiqfmupwuzfcumalzutqxrtdm/Build/Intermediates.noindex/ArchiveIntermediates/Inform/InstallationBuildProductsLocation/Applications/Inform.app

/Users/wmodes/Library/Developer/Xcode/DerivedData/Inform-gzkwiqfmupwuzfcumalzutqxrtdm/Build/Intermediates.noindex/ArchiveIntermediates/Inform/InstallationBuildProductsLocation/Applications/Inform.app: code object is not signed at all
In subcomponent: /Users/wmodes/Library/Developer/Xcode/DerivedData/Inform-gzkwiqfmupwuzfcumalzutqxrtdm/Build/Intermediates.noindex/ArchiveIntermediates/Inform/InstallationBuildProductsLocation/Applications/Inform.app/Contents/MacOS/6M62/ni
Command CodeSign failed with a nonzero exit code

Experimenting on the command line, I get the same error with the codesign command, but the --deep command line option works. But it feels a little hacky.

from inform.

TobyLobster avatar TobyLobster commented on August 20, 2024

I'm so glad you got up and running, that's good to hear! I'll put out a new version when I get a moment. Busy on other things right now, but soon (crosses fingers).

from inform.

wmodes avatar wmodes commented on August 20, 2024

I would be glad to see this as part of the release.

from inform.

TobyLobster avatar TobyLobster commented on August 20, 2024

This should be fixed now.

from inform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.