Giter Site home page Giter Site logo

Comments (16)

maxsz avatar maxsz commented on July 23, 2024 3

I've created a pull request which should fix this for Cocoapods and Carthage.

from apollo-ios.

stubailo avatar stubailo commented on July 23, 2024

Interesting, is there anything we can do to make this work out of the box?

from apollo-ios.

maxsz avatar maxsz commented on July 23, 2024

@stephensilber What was wrong with the codesigning? Can you provide the output of codesign -dvvv <IPA>?

from apollo-ios.

stephensilber avatar stephensilber commented on July 23, 2024

I haven't had a chance to look into this, but I'll be submitting another build either today or tomorrow and will make note of anything that may be useful, including the output of codesign -dvvv <IPA>

from apollo-ios.

martijnwalraven avatar martijnwalraven commented on July 23, 2024

@stephensilber: Did you find out anything more about this?

from apollo-ios.

stephensilber avatar stephensilber commented on July 23, 2024

@martijnwalraven to work around it, I have been manually removing the custom build phase run script and the check-and-run-apollo-codegen.sh script from the Apollo target before archiving. I just left both of those there to test this. I archived a build and then exported it as an IPA for distribution, and here's the ouput for the command you mentioned above:

➜  Verse 2016-11-18 12-32-28 codesign -dvvv Verse.ipa
Verse.ipa: code object is not signed at all

Sorry for the late response. Let me know what else I can help do to debug this on my end

from apollo-ios.

fruitcoder avatar fruitcoder commented on July 23, 2024

Holy ****. I was also fighting with codesigning today for a TestFlight submission and got the same error, which didn't give me any clue what was going wrong. I will try to remove the run script, but that's probably not sufficient. I'm using Carthage, so I really don't know how to automate this 🤔

from apollo-ios.

stephensilber avatar stephensilber commented on July 23, 2024

Can that .sh script be moved into the build phase run script* so it's not a piece of
the Apollo project? Not the most ideal solution due to updates maybe needing
to change that script, but there could be a version check that points to an
updated script? Still somewhat manual, but only when the framework changes
the script.

**fixed some typos from posting this on mobile

On Mon, Nov 21, 2016 at 2:31 PM Alex Hüllmandel [email protected]
wrote:

Holy ****. I was also fighting with codesigning today for a TestFlight
submission and got the same error, which didn't give me any clue what was
going wrong. I will try to remove the run script, but that's probably not
sufficient. I'm using Carthage, so I really don't know how to automate this
🤔


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#14 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAzmuUa1SpUqetd1cnk08_QzXs3KdRxdks5rAfGpgaJpZM4KqTdI
.

from apollo-ios.

fruitcoder avatar fruitcoder commented on July 23, 2024

I'm still unsure how to tackle this and I have no reference project to look into.
Updating carthage, manually deleting the install-or-update-starwars-server.sh and copying check-and-run-apollo-codegen.sh over to my target + customizing the run script fixed the signing issue, but it's rather cumbersome.
Copying the script directly in the run script phase sounds like an idea, but didn't you also have to delete the install-or-update-starwars-server.sh to make signing work?

from apollo-ios.

maxsz avatar maxsz commented on July 23, 2024

I think the correct way to not have check-and-run-apollo-codegen.sh added to the app bundle by cocoapods is to change the podspec from

[...]
s.resource = 'scripts/check-and-run-apollo-codegen.sh'
[...]

to

[...]
s.preserve_path = ''scripts/check-and-run-apollo-codegen.sh'
[...]

Thus preserving the check-and-run-apollo-codegen.sh file, so people can run it in a build phase, but not adding it to the target app bundle.

@stephensilber can you try that and see if it helps?

Update:
I've just created a new minimal test project with Apollo and there are no codesigning issues at all. I can't think of any reason why the check-and-run-apollo-codegen.sh script should break codesigning, it's just a resource in the framework, which is build before any codesigning steps.

The above comment is still valid, though, because I don't think we want to ship this script in the released app IPA.

from apollo-ios.

fruitcoder avatar fruitcoder commented on July 23, 2024

If the script wasn't in the targets I could also reference it through the Carthage/Checkouts directory without any extra setup after updating dependencies.

from apollo-ios.

martijnwalraven avatar martijnwalraven commented on July 23, 2024

I came across this, so it seems it is a known issue and affects other frameworks as well.

Not sure yet what the root cause is and whether there are any workarounds that don't involve removing the script from the bundle.

from apollo-ios.

fruitcoder avatar fruitcoder commented on July 23, 2024

Yeah, I read the same thing :)
In the end, I will have a custom action in fastlane that could remove the script before uploading to iTC, but we should look for a solution that works for everyone.

from apollo-ios.

nubbel avatar nubbel commented on July 23, 2024

Not sure about Carthage, but for Cocoapods the solution is what @maxsz suggested.
Using preserve_path instead of resource prevents that the script ends up in the bundle.

from apollo-ios.

fruitcoder avatar fruitcoder commented on July 23, 2024

Yeah, this definitely works for Cocoapods

from apollo-ios.

nubbel avatar nubbel commented on July 23, 2024

We've figured it out!
@maxsz is preparing a PR right now that fixes this issue for both Cocoapods and Carthage.

from apollo-ios.

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.