New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to submit to AppStore due to strip-frameworks.sh signature #1865

Closed
andreamazz opened this Issue May 7, 2015 · 27 comments

Comments

Projects
None yet
7 participants
@andreamazz

andreamazz commented May 7, 2015

Hi all.
I'm, trying to Archive and submit an app that is using Realm as a dynamic framework (due to an issue with cocoapods, frameworks and extensions it's my only option right now).

iTunes validation fails with this message:
The binary at path [Gulps.app/Frameworks/Realm.framework/strip-frameworks.sh] contains an invalid signature
screen shot 2015-05-07 at 18 40 30

I'm currently using 0.92.1 with Xcode 6.3.1.

@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz May 7, 2015

I did work around this by adding

rm ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh

to the build phase script 😅
Edit:
Then I sobered up and set the -x :D

andreamazz commented May 7, 2015

I did work around this by adding

rm ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh

to the build phase script 😅
Edit:
Then I sobered up and set the -x :D

@jimjeffers

This comment has been minimized.

Show comment
Hide comment
@jimjeffers

jimjeffers May 19, 2015

@segiddins Not sure what the fix was here. I'm getting this on 0.92.3 now. Is the fix simply amending the build phase script as andreamazz did or should this be resolved in the current build?

jimjeffers commented May 19, 2015

@segiddins Not sure what the fix was here. I'm getting this on 0.92.3 now. Is the fix simply amending the build phase script as andreamazz did or should this be resolved in the current build?

@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz May 20, 2015

@jimjeffers it should be resolved, the build script strip-frameworks.sh is no longer executable, so Xcode shouldn't complain.

andreamazz commented May 20, 2015

@jimjeffers it should be resolved, the build script strip-frameworks.sh is no longer executable, so Xcode shouldn't complain.

@webmagnets

This comment has been minimized.

Show comment
Hide comment
@webmagnets

webmagnets May 23, 2015

This isn't resolved for me. I have the latest RealmSwift installed, but I am still getting that error when trying to submit to the app store. Should I add rm ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh?

webmagnets commented May 23, 2015

This isn't resolved for me. I have the latest RealmSwift installed, but I am still getting that error when trying to submit to the app store. Should I add rm ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh?

@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz May 24, 2015

The latest RealmSwift.framework has the correct permissions on the strip-freamework script, so that's weird. Open a terminal, go into your local copy of RealmSwift.framework/ and make sure that strip-freamework.sh is not executable. If it is, run chmod -x strip-freamework.sh

andreamazz commented May 24, 2015

The latest RealmSwift.framework has the correct permissions on the strip-freamework script, so that's weird. Open a terminal, go into your local copy of RealmSwift.framework/ and make sure that strip-freamework.sh is not executable. If it is, run chmod -x strip-freamework.sh

@webmagnets

This comment has been minimized.

Show comment
Hide comment
@webmagnets

webmagnets May 24, 2015

I ran chmod -x /Users/nathancain/Library/Developer/Xcode/DerivedData/Readmersion-eptpcuuyaiwxwxgcjybncfsqrxys/Build/Products/Debug-iphoneos/Readmersion.app/Frameworks/RealmSwift.framework/strip-frameworks.sh. Does that seem like the correct directory?

If so, then that didn't fix the problem. I am adding some screen shots that shows the errors. I didn't realize until now that there are other errors if scroll down, so I am attaching two images here.

screenshot 2015-05-24 05 51 38
screenshot 2015-05-24 05 52 20

webmagnets commented May 24, 2015

I ran chmod -x /Users/nathancain/Library/Developer/Xcode/DerivedData/Readmersion-eptpcuuyaiwxwxgcjybncfsqrxys/Build/Products/Debug-iphoneos/Readmersion.app/Frameworks/RealmSwift.framework/strip-frameworks.sh. Does that seem like the correct directory?

If so, then that didn't fix the problem. I am adding some screen shots that shows the errors. I didn't realize until now that there are other errors if scroll down, so I am attaching two images here.

screenshot 2015-05-24 05 51 38
screenshot 2015-05-24 05 52 20

@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz May 24, 2015

No, you need to run it in the framework inside your project's folder, not on the derived data.

andreamazz commented May 24, 2015

No, you need to run it in the framework inside your project's folder, not on the derived data.

@webmagnets

This comment has been minimized.

Show comment
Hide comment
@webmagnets

webmagnets May 24, 2015

Ok, now I tried chmod -x /Users/nathancain/Documents/Readmersion/RealmSwift.framework/strip-frameworks.sh, clean, build, archive, submit and it still gave me the same errors. Also, please notice the "nested bundles" and the "disallowed file 'Frameworks'" errors.

Thanks for your help. I appreciate your work.

webmagnets commented May 24, 2015

Ok, now I tried chmod -x /Users/nathancain/Documents/Readmersion/RealmSwift.framework/strip-frameworks.sh, clean, build, archive, submit and it still gave me the same errors. Also, please notice the "nested bundles" and the "disallowed file 'Frameworks'" errors.

Thanks for your help. I appreciate your work.

@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz May 24, 2015

I see, this seems related to this issue #1907
Can you switch to a cocoapods install for the time being? That should take care of the problem (on the other hand, if you have extensions in your app, another problem might arise).

andreamazz commented May 24, 2015

I see, this seems related to this issue #1907
Can you switch to a cocoapods install for the time being? That should take care of the problem (on the other hand, if you have extensions in your app, another problem might arise).

@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz May 24, 2015

You can also try this: #1942
You'll need to manually build until next release, but it should go through submission just fine.

andreamazz commented May 24, 2015

You can also try this: #1942
You'll need to manually build until next release, but it should go through submission just fine.

@webmagnets

This comment has been minimized.

Show comment
Hide comment
@webmagnets

webmagnets May 24, 2015

How do you manually build?

webmagnets commented May 24, 2015

How do you manually build?

@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz May 24, 2015

git clone git@github.com:realm/realm-cocoa.git
cd realm-cocoa
git pull origin seg-package-swift
git checkout seg-package-swift
sh build.sh build
open build

andreamazz commented May 24, 2015

git clone git@github.com:realm/realm-cocoa.git
cd realm-cocoa
git pull origin seg-package-swift
git checkout seg-package-swift
sh build.sh build
open build
@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz May 24, 2015

Sorry, just realized that I was working on the master branch 😅
I updated the build instructions.

andreamazz commented May 24, 2015

Sorry, just realized that I was working on the master branch 😅
I updated the build instructions.

@webmagnets

This comment has been minimized.

Show comment
Hide comment
@webmagnets

webmagnets May 24, 2015

Were you planning on putting another dropbox link on here?

webmagnets commented May 24, 2015

Were you planning on putting another dropbox link on here?

@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz May 24, 2015

I'm having horrible upload speed at the moment, you can however run the commands above to build on your machine

andreamazz commented May 24, 2015

I'm having horrible upload speed at the moment, you can however run the commands above to build on your machine

@webmagnets

This comment has been minimized.

Show comment
Hide comment
@webmagnets

webmagnets May 24, 2015

I'm getting:

Cloning into 'realm-cocoa'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

webmagnets commented May 24, 2015

I'm getting:

Cloning into 'realm-cocoa'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz May 24, 2015

Use the http endpoint instead

git clone https://github.com/realm/realm-cocoa.git

andreamazz commented May 24, 2015

Use the http endpoint instead

git clone https://github.com/realm/realm-cocoa.git
@webmagnets

This comment has been minimized.

Show comment
Hide comment
@webmagnets

webmagnets May 24, 2015

Ok, that worked. Now am I supposed to find the RealmSwift.framework and copy it into my project?

webmagnets commented May 24, 2015

Ok, that worked. Now am I supposed to find the RealmSwift.framework and copy it into my project?

@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz May 24, 2015

Yeah, you'll find the frameworks in the build folder

andreamazz commented May 24, 2015

Yeah, you'll find the frameworks in the build folder

@webmagnets

This comment has been minimized.

Show comment
Hide comment
@webmagnets

webmagnets May 24, 2015

Submission worked!!! Thanks.

webmagnets commented May 24, 2015

Submission worked!!! Thanks.

@andreamazz

This comment has been minimized.

Show comment
Hide comment
@andreamazz

andreamazz commented May 24, 2015

👍

@JhimliBora

This comment has been minimized.

Show comment
Hide comment
@JhimliBora

JhimliBora Jun 17, 2015

Hi, help needed.

was getting errors while submitting archive to iTunes using Realm Database version 0.93.2.
Tried manual build and copied both frameworks from build folder to my project folder.Archieve gets created but submission failing. getting following errors. What am I doing wrong?
screen shot 2015-06-18 at 12 06 05 am

JhimliBora commented Jun 17, 2015

Hi, help needed.

was getting errors while submitting archive to iTunes using Realm Database version 0.93.2.
Tried manual build and copied both frameworks from build folder to my project folder.Archieve gets created but submission failing. getting following errors. What am I doing wrong?
screen shot 2015-06-18 at 12 06 05 am

@JhimliBora

This comment has been minimized.

Show comment
Hide comment
@JhimliBora

JhimliBora Jun 17, 2015

Xcode Version is 6.3.2 and RealmSwift version 0.93.2

JhimliBora commented Jun 17, 2015

Xcode Version is 6.3.2 and RealmSwift version 0.93.2

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Jun 17, 2015

Contributor

@JhimliBora have you done step four of the installation instructions on https://realm.io/docs/swift/latest/, i.e. adding a run script build phase to call bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh" ?

Contributor

segiddins commented Jun 17, 2015

@JhimliBora have you done step four of the installation instructions on https://realm.io/docs/swift/latest/, i.e. adding a run script build phase to call bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh" ?

@JhimliBora

This comment has been minimized.

Show comment
Hide comment
@JhimliBora

JhimliBora Jun 17, 2015

  1. first I did all steps mentioned in the Realm Installation Document including bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh"
    It was failing while creating the Archive saying "....IamHappy.app/Frameworks/Realm.framework/strip-frameworks.sh:No such file or directory

  2. Next I found the above post and tried the manual step. copied both the frameworks from the build folder into my project folder. Didn't do any of the steps mentioned in the Realm Installation Document in their website.
    It creates the Archieve, Validates but while trying to submit to iTunes I was getting errors as shown above in screenshots.

  3. Next with the manual steps, tried to follow all steps mentioned in the Realm Installation Document in their website. I get error when Archieve is created.

I am stuck. Thanks for your help.

JhimliBora commented Jun 17, 2015

  1. first I did all steps mentioned in the Realm Installation Document including bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh"
    It was failing while creating the Archive saying "....IamHappy.app/Frameworks/Realm.framework/strip-frameworks.sh:No such file or directory

  2. Next I found the above post and tried the manual step. copied both the frameworks from the build folder into my project folder. Didn't do any of the steps mentioned in the Realm Installation Document in their website.
    It creates the Archieve, Validates but while trying to submit to iTunes I was getting errors as shown above in screenshots.

  3. Next with the manual steps, tried to follow all steps mentioned in the Realm Installation Document in their website. I get error when Archieve is created.

I am stuck. Thanks for your help.

@JhimliBora

This comment has been minimized.

Show comment
Hide comment
@JhimliBora

JhimliBora Jun 18, 2015

Its working for me now. Tried all the steps in Realm Swift documentation. But this time I removed the Run script section in Build Phases and added a new one and pasted the code in step 4 of the documentation bash"${BUILT_PRODUCTS_DIR}/${...

The submitting to App store was causing Xcode to crash. I used appLoader to submit the new build.

JhimliBora commented Jun 18, 2015

Its working for me now. Tried all the steps in Realm Swift documentation. But this time I removed the Run script section in Build Phases and added a new one and pasted the code in step 4 of the documentation bash"${BUILT_PRODUCTS_DIR}/${...

The submitting to App store was causing Xcode to crash. I used appLoader to submit the new build.

@jpsim

This comment has been minimized.

Show comment
Hide comment
@jpsim

jpsim Jun 18, 2015

Contributor

Glad you got this working by following the instructions in our docs 👍

Contributor

jpsim commented Jun 18, 2015

Glad you got this working by following the instructions in our docs 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment