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 Support #212

Open
YiningJia opened this issue Jul 16, 2015 · 12 comments
Open

XCode 7 Support #212

YiningJia opened this issue Jul 16, 2015 · 12 comments

Comments

@YiningJia
Copy link

Hi @kstenerud,

Seems the install.py doesn't work for XCode7-beta cause there is no "Specifications" folder under /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode.

Any idea how to fix this?

@YiningJia
Copy link
Author

Static iOS framework does not work, I can not even create a project from it. :(

@giladm
Copy link

giladm commented Aug 18, 2015

I have the same problem with Xcode7-beta. Can't create framework.
Was anyone able to use kstenerud framework with Xcode 7?

@YiningJia
Copy link
Author

WRAPPER_PREFIX =;
WRAPPER_SUFFIX = .framework
WRAPPER_NAME = $(WRAPPER_PREFIX)$(PRODUCT_NAME)$(WRAPPER_SUFFIX)
VERSIONS_FOLDER_PATH = $(WRAPPER_NAME)/Versions
CONTENTS_FOLDER_PATH = $(VERSIONS_FOLDER_PATH)/$(FRAMEWORK_VERSION)
FRAMEWORKS_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)/Frameworks
UNLOCALIZED_RESOURCES_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)/Resources
CODESIGNING_FOLDER_PATH = $(TARGET_BUILD_DIR)/$(CONTENTS_FOLDER_PATH)

CURRENT_VERSION = Current
EXECUTABLE_PREFIX =;
EXECUTABLE_SUFFIX =;
EXECUTABLE_NAME = $(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)
EXECUTABLE_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)
EXECUTABLE_PATH = $(EXECUTABLE_FOLDER_PATH)/$(EXECUTABLE_NAME)
INFOPLIST_PATH = $(UNLOCALIZED_RESOURCES_FOLDER_PATH)/Info.plist;
INFOPLISTSTRINGS_PATH = $(LOCALIZED_RESOURCES_FOLDER_PATH)/InfoPlist.strings;
PKGINFO_PATH = $(WRAPPER_NAME)/PkgInfo
PBDEVELOPMENTPLIST_PATH = $(CONTENTS_FOLDER_PATH)/pbdevelopment.plist
VERSIONPLIST_PATH = $(UNLOCALIZED_RESOURCES_FOLDER_PATH)/version.plist
PUBLIC_HEADERS_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)/Headers
PRIVATE_HEADERS_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)/PrivateHeaders
EXECUTABLES_FOLDER_PATH = $(LOCALIZED_RESOURCES_FOLDER_PATH)
FRAMEWORKS_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)/Frameworks
SHARED_FRAMEWORKS_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)/SharedFrameworks
SHARED_SUPPORT_FOLDER_PATH = $(UNLOCALIZED_RESOURCES_FOLDER_PATH)
UNLOCALIZED_RESOURCES_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)/Resources
LOCALIZED_RESOURCES_FOLDER_PATH = $(UNLOCALIZED_RESOURCES_FOLDER_PATH)/$(DEVELOPMENT_LANGUAGE).lproj
DOCUMENTATION_FOLDER_PATH = $(LOCALIZED_RESOURCES_FOLDER_PATH)/Documentation
PLUGINS_FOLDER_PATH = $(UNLOCALIZED_RESOURCES_FOLDER_PATH)
SCRIPTS_FOLDER_PATH = $(UNLOCALIZED_RESOURCES_FOLDER_PATH)/Scripts
JAVA_FOLDER_PATH = $(UNLOCALIZED_RESOURCES_FOLDER_PATH)/Java
CODESIGNING_FOLDER_PATH = $(TARGET_BUILD_DIR)/$(CONTENTS_FOLDER_PATH)

@YiningJia
Copy link
Author

Save this file as xxx.xcconfig and load it into your project can solve this problem.

@YiningJia
Copy link
Author

You still need to run BuildFW.py after the compile to help you generate .Framework.
xcconfig file only help you to set up some necessary build environment variables which will be used by BuildFW.py

@giladm
Copy link

giladm commented Aug 23, 2015

Thanks for your followup...
Not following your instructions.
What does it mean to load the xcconfig file to your project? is that simply to drag the file to the project? That's what I did but I don't think it's doing anything.
I also ran BuildFW.py. (I didn't need to run it prior to xcode 7).
When I build the framework project I got the same results: missing folders and resources are not copied to where they should.

@YiningJia
Copy link
Author

http://www.jontolof.com/cocoa/using-xcconfig-files-for-you-xcode-project/
This blog explain well for how to use xcconfig files.

@hewigovens
Copy link

I just copied those files from Xcode 6.4, problem solved

@YiningJia
Copy link
Author

Could you be more specific about which files copied from Xcode 6.4 to where in Xcode 7?

@hewigovens
Copy link


sudo cp -R /Applications/Xcode6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode

sudo cp -R /Applications/Xcode6.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Specifications /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode

@YiningJia
Copy link
Author

It wound be nice if you can create a pull request for this fix about Xcode7 support.
This fix should be made on
https://github.com/kstenerud/iOS-Universal-Framework/blob/master/Real%20Framework/install.sh

@zittix
Copy link

zittix commented Sep 15, 2015

Check out the PR #213

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

4 participants