Open ryanmaxwell opened 8 years ago
Running into the same issue. But, the podspec is not officially maintained, no?
Same here
A sane workaround until someone updates this repo, is to add a local MTLManagedObjectAdapter.podspec.json
in your project.
Then in your podfile, point to it like:
pod 'MTLManagedObjectAdapter', :podspec => 'MTLManagedObjectAdapter.podspec.json'
{
"name": "MTLManagedObjectAdapter",
"version": "1.0.1",
"license": "MIT",
"summary": "Model framework for Cocoa and Cocoa Touch.",
"homepage": "https://github.com/Mantle/Mantle",
"authors": {
"GitHub": "support@github.com"
},
"source": {
"git": "https://github.com/Overcoat/MTLManagedObjectAdapter.git",
"tag": "1.0.0.1"
},
"requires_arc": true,
"platforms": {
"ios": "5.0",
"osx": "10.7",
"watchos": "2.0"
},
"source_files": "MTLManagedObjectAdapter",
"dependencies": {
"Mantle": [
"~> 2.0"
]
},
"frameworks": [
"Foundation",
"CoreData"
],
"prepare_command": "PREFIX=\"mtl_moa_\"\n# Add prefix to header imports\next_header_prefix_src() {\n SOURCE_FILE=$1\n EXT_HEADER_NAME=$2\n sed -i.bak \"s/\"${EXT_HEADER_NAME}\"/\"${PREFIX}${EXT_HEADER_NAME}\"/g\" ${SOURCE_FILE} && rm ${SOURCE_FILE}.bak\n}\next_header_prefix_src MTLManagedObjectAdapter/MTLManagedObjectAdapter.m EXTRuntimeExtensions.h\next_header_prefix_src MTLManagedObjectAdapter/MTLManagedObjectAdapter.m EXTScope.h\next_header_prefix_src MTLManagedObjectAdapter/extobjc/EXTRuntimeExtensions.m EXTRuntimeExtensions.h\next_header_prefix_src MTLManagedObjectAdapter/extobjc/EXTScope.m EXTScope.h\n# Change header name\next_header_prefix_mv() {\n SOURCE_FILE=$1\n FILE_NAME=`basename ${SOURCE_FILE}`\n DIR_NAME=`dirname ${SOURCE_FILE}`\n mv ${SOURCE_FILE} `dirname ${SOURCE_FILE}`/${PREFIX}`basename ${SOURCE_FILE}`\n}\nexport -f ext_header_prefix_mv\nexport PREFIX=${PREFIX}\nfind MTLManagedObjectAdapter/extobjc -name \"*.h\" -exec bash -c 'ext_header_prefix_mv \"$0\"' {} \\;\nunset ext_header_prefix_mv\nunset PREFIX",
"subspecs": [
{
"name": "extobjc",
"source_files": "MTLManagedObjectAdapter/extobjc",
"private_header_files": "MTLManagedObjectAdapter/extobjc/*.h"
}
]
}
The issue has been fixed and can be closed.
Hi - I'm integrating this project into a swift project using Cocoapods frameworks - and all is well when building etc.
However when uploading to the store, I have only just came across this issue (since Xcode 7.1).
Apparently they don't want you to use 4 decimal points in a version number, and the fact that this project does means I need to manually edit the info.plist before submitting.