小编Rue*_*zuo的帖子

二进制文件被拒绝,因为无效的符号链接,任何想法?

我不确定这是否是正确的问题,所以如果我使用了错误的部分,我很抱歉.我们将应用程序提交到iTunes Connect时遇到了麻烦,我们收到的电子邮件说:

Invalid Symlink - Your package contains a symbolic link 'PlugIns/$REDACTED_WATCHKIT_EXTENSION_TARGET_NAME$.appex/$REDACTED_WATCHKIT_EXTENSION_TARGET_NAME$.appex' which resolves to a location '/Users/$REDACTED_USER$/Library/Developer/Xcode/DerivedData/Seta-ctfzptralingvtbxhssdlkkzkclw/Build/Intermediates/ArchiveIntermediates/Seta/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/$REDACTED_WATCHKIT_EXTENSION_TARGET_NAME$.appex' that does not exist or is outside of the package.
Run Code Online (Sandbox Code Playgroud)

我尝试使用与项目相同的设置创建一个空白Xcode项目来重现错误,但我无法从iTunes Connect获得相同的错误.有没有人知道为什么要创建符号链接?我检查了空白的项目.ipa,它在该路径中没有包含那个符号链接,所以这显然是错误的,但我找不到创建符号链接的构建设置/配置.

我检查了xcodebuild输出,我发现了这个:

SymLink build/SetaWatchKitExtension.appex /Users/$REDACTED_USER$/Library/Developer/Xcode/DerivedData/Seta-ctfzptralingvtbxhssdlkkzkclw/Build/Intermediates/ArchiveIntermediates/Seta/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SetaWatchKitExtension.appex
    cd $REDACTED_PROJECT_PATH$
    export PATH="/Applications/Xcode-7.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-7.1.app/Contents/Developer/usr/bin:$REDACTED_PATH_ENV_VARIABLE$"
    /bin/ln -sfh /Users/$REDACTED_USER$/Library/Developer/Xcode/DerivedData/Seta-ctfzptralingvtbxhssdlkkzkclw/Build/Intermediates/ArchiveIntermediates/Seta/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/$REDACTED_WATCHKIT_EXTENSION_TARGET_NAME$.appex /Users/$REDACTED_USER$/Documents/$REDACTED_PATH$/build/$REDACTED_WATCHKIT_EXTENSION_TARGET_NAME$.appex
Run Code Online (Sandbox Code Playgroud)

这似乎很好,但不知何故,符号链接最终在.ipa内部是错误的.在watchkit扩展构建目标步骤期间,在创建产品结构之后和CompileSwiftSources之前发生这种情况.

非常感谢任何提示或帮助.我正在使用Xcode 7.1.

xcode app-store ios watchkit

11
推荐指数
1
解决办法
1302
查看次数

Android项目上与Travis CI的Gradle依赖关系

我在使用Travis CI上的Gradle构建Android项目时遇到了麻烦.

我在build.gradle上声明了我的依赖项:

dependencies {
    compile 'com.android.support:appcompat-v7:18.0.0'
    compile 'com.android.support:support-v4:18.0.0'
    freeCompile files (
        'libs/GoogleAdMobAdsSdk-6.4.1.jar'
    )
}
Run Code Online (Sandbox Code Playgroud)

这是我的.travis.yml脚本:

script: 
  - TERM=dumb ./gradlew build
  - TERM=dumb ./gradlew connectedInstrumentTest
Run Code Online (Sandbox Code Playgroud)

我在特拉维斯得到这个:

A problem occurred configuring project ':FlavorTest'.
> Failed to notify project evaluation listener.
   > Could not resolve all dependencies for configuration ':FlavorTest:_FreeDebugCompile'.
      > Could not find com.android.support:appcompat-v7:18.0.0.
        Required by:
            cloaked-octo-spice:FlavorTest:unspecified
      > Could not find com.android.support:support-v4:18.0.0.
        Required by:
            cloaked-octo-spice:FlavorTest:unspecified
Run Code Online (Sandbox Code Playgroud)

在我的本地项目上似乎一切正常.为了获得Travis的依赖,我还需要做些其他事情吗?

我在这里先向您的帮助表示感谢.

continuous-integration dependencies android gradle travis-ci

10
推荐指数
2
解决办法
3078
查看次数

如何正确设置具有框架目标和使用该框架的应用程序目标的Podfile

拥有以下项目结构:

  • 应用程序目标驻留在Xcode项目(App.xcodeproj)上取决于驻留在不同Xcode项目(Framework.xcodeproj)上的Framework目标.
  • 应用程序目标取决于材质窗格
  • 框架目标取决于AFNetworking pod.

CocoaPods支持这种设置吗?

我的第一次尝试是做这样的事情:

platform :ios, '9.0'
use_frameworks!

target 'App' do
  workspace 'App.xcworkspace'
  project 'App.xcodeproj'  
  pod 'Material'
end

target 'Framework' do
  workspace 'App.xcworkspace'
  project 'Framework/Framework.xcodeproj'
  pod 'AFNetworking'
end
Run Code Online (Sandbox Code Playgroud)

但是应用程序在启动时崩溃,出现以下错误:

dyld: Library not loaded: @rpath/AFNetworking.framework/AFNetworking

Referenced from: /Users/ruenzuo/Library/Developer/Xcode/DerivedData/App-aayvulxvruuarudtheuilepmmctk/Build/Products/Debug-iphonesimulator/Framework.framework/Framework

Reason: image not found
Run Code Online (Sandbox Code Playgroud)

这是有道理的,因为CocoaPods不知道App和Framework是相关的.事实上,在pod安装后,我收到以下警告:

[!] The Podfile contains framework targets, for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add …
Run Code Online (Sandbox Code Playgroud)

xcode objective-c ios cocoapods swift

7
推荐指数
1
解决办法
1200
查看次数