kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 474 forks source link

XCode 7 Support #212

Open YiningJia opened 8 years ago

YiningJia commented 8 years ago

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 commented 8 years ago

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

giladm commented 8 years ago

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

YiningJia commented 8 years ago

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 commented 8 years ago

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

YiningJia commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

hewigovens commented 8 years ago

I just copied those files from Xcode 6.4, problem solved

YiningJia commented 8 years ago

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

hewigovens commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

Check out the PR #213