Comments (16)
I've created a pull request which should fix this for Cocoapods and Carthage.
from apollo-ios.
Interesting, is there anything we can do to make this work out of the box?
from apollo-ios.
@stephensilber What was wrong with the codesigning? Can you provide the output of codesign -dvvv <IPA>
?
from apollo-ios.
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.
@stephensilber: Did you find out anything more about this?
from apollo-ios.
@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.
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.
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.
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.
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.
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.
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.
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.
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.
Yeah, this definitely works for Cocoapods
from apollo-ios.
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)
- Xcode 15 Beta "Expression" name collision HOT 4
- ApolloSQLite doesn't compile on Xcode 16 due to `Expression` symbol clash with new `Foundation.Expression` HOT 3
- Request to clear derived data when switch from build for test to build for run HOT 5
- Adding in mocks is causing our tests to fail. HOT 3
- [Xcode 16] Mutating property of a fragment causes compile time error HOT 2
- SQLite: Ability to change journal mode HOT 6
- Getting the error "Module ApolloAPI was not compiled for testing" while compiling swift package in "Release" mode in apollo v1.7.0. HOT 3
- Package Resolution Failed: Invalid Manifest when installing a library with an Apollo dependency HOT 2
- Cannot find 'LaunchListQuery' in scope HOT 2
- `.editorconfig` HOT 2
- How to Implement GraphQLQueryPager in Apollo iOS for Pagination? HOT 2
- docs: Update Pagination docs to callout separate package
- Uploading files with apollo HOT 1
- Crash Thread 1: Fatal error: No data found for task 1, cannot append received data HOT 4
- Use ApolloClient with swift-corelibs-foundation 5.10.1 HOT 2
- RFC: 2.0 API Changes - Swift Concurrency HOT 5
- Add support for local cache mutations HOT 2
- Pagination: Errors on initial page not reported HOT 3
- CacheKeyInfo with a numeric jsonValue of `1` returns nil HOT 1
- Type 'Operation' has no member 'deferredSelectionSetType' in IncrementalGraphQLResponse HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-ios.