Skip to content
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

XCode 7 invalid framework packaging #214

Closed
look1n opened this issue Sep 23, 2015 · 5 comments
Closed

XCode 7 invalid framework packaging #214

look1n opened this issue Sep 23, 2015 · 5 comments

Comments

@look1n
Copy link

look1n commented Sep 23, 2015

I've faced an issue after updating my XCode to version 7. Generated framework has flat structure without Current/A subfolders, script lines that generates symbolic links failed with "No such file or directory" messages. How can I solve this problem? Attaching error log below. Thanks.

File "/Users/User/Xcode/DerivedData/general-hfruqhxpfbpvyyaxsnswjqazacxd/Build/Intermediates/sdk.build/Debug-iphoneos/SDK.build/Script-5C7F07D71A2636850090AA35.sh", line 817, in
run_build()
File "/Users/User/Xcode/DerivedData/general-hfruqhxpfbpvyyaxsnswjqazacxd/Build/Intermediates/sdk.build/Debug-iphoneos/SDK.build/Script-5C7F07D71A2636850090AA35.sh", line 792, in run_build
add_symlinks_to_framework(project)
File "/Users/User/Xcode/DerivedData/general-hfruqhxpfbpvyyaxsnswjqazacxd/Build/Intermediates/sdk.build/Debug-iphoneos/SDK.build/Script-5C7F07D71A2636850090AA35.sh", line 680, in add_symlinks_to_framework
attempt_symlink(os.path.join(base_dir, "Versions", "Current"), os.environ['FRAMEWORK_VERSION'])
File "/Users/User/Xcode/DerivedData/general-hfruqhxpfbpvyyaxsnswjqazacxd/Build/Intermediates/sdk.build/Debug-iphoneos/SDK.build/Script-5C7F07D71A2636850090AA35.sh", line 493, in attempt_symlink
os.stat(os.path.abspath(os.path.join(link_path, "..", link_to)))
OSError: [Errno 2] No such file or directory: '/Users/User/Xcode/DerivedData/general-hfruqhxpfbpvyyaxsnswjqazacxd/Build/Products/Debug-iphoneos/SDK.framework/Versions/A'
Command /bin/sh failed with exit code 1

@bjtufang
Copy link

hi,if xcode6 have used universal framework, and update to xcode7. firstly do not reinstall universal framework. you can run auto_xcode_edit/main.py to resolve your problem. please link to https://github.com/bjtufang/run-universal-framework-in-xcode7

@look1n
Copy link
Author

look1n commented Sep 24, 2015

Solved my issue by overriding build settings constants:
CONTENTS_FOLDER_PATH=$WRAPPER_NAME/Versions/$FRAMEWORK_VERSION
INFOPLIST_PATH=$CONTENTS_FOLDER_PATH/Resources/Info.plist

@neilyoung
Copy link

@look1n: Could you please a bit more specific, where you changed these settings?
TIA

@look1n
Copy link
Author

look1n commented Oct 7, 2015

You should set user-defined variables in your project target build settings.

@neilyoung
Copy link

@look1n : Thank you very much. Made my day :)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants