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

Version number is incompatible with frameworks in Xcode. #18

Open

Description

@ryanmaxwell

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

Activity

  1. juzzin commented on Nov 9, 2015

    @juzzin

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

  2. melbic commented on Jan 28, 2016

    @melbic

    Same here

  3. ryanmaxwell commented on Jan 28, 2016

    @ryanmaxwell
    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"
        }
      ]
    }
    
  4. melbic commented on Jan 29, 2016

    @melbic

    The issue has been fixed and can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions