Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Version number is incompatible with frameworks in Xcode. #18

Open
ryanmaxwell opened this issue Oct 23, 2015 · 4 comments
Open

Version number is incompatible with frameworks in Xcode. #18

ryanmaxwell opened this issue Oct 23, 2015 · 4 comments

Comments

@ryanmaxwell
Copy link

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.

screen shot 2015-10-23 at 19 17 09

@juzzin
Copy link

juzzin commented Nov 9, 2015

Running into the same issue. But, the podspec is not officially maintained, no?

@melbic
Copy link

melbic commented Jan 28, 2016

Same here

@ryanmaxwell
Copy link
Author

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"
    }
  ]
}

@melbic
Copy link

melbic commented Jan 29, 2016

The issue has been fixed and can be closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants