为什么fastlanes increment_build_number找不到我的项目?

时间:2016-09-22 22:53:01

标签: fastlane

我已将我的fastlane文件夹移出xcode目录,所以我试图让它定位它。我有这是我的Fastfile:

increment_build_number(
  xcodeproj: "../ember-cordova/cordova/platforms/ios/Patontheback.xcodeproj",
  build_number: ENV['CIRCLE_BUILD_NUM']
)

哪个给出了

[06:50:47]: ------------------------------------
[06:50:47]: --- Step: increment_build_number ---
[06:50:47]: ------------------------------------
[06:50:47]: Error setting value '../ember-cordova/cordova/platforms/ios/Patontheback.xcodeproj' for option 'xcodeproj'
[06:50:47]: You passed invalid parameters to 'increment_build_number'.
[06:50:47]: Check out the error below and available options by running `fastlane action increment_build_number`
[06:50:47]: Variable Dump:
[06:50:47]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios beta", :SIGH_PROFILE_TYPE=>"app-store"}
[06:50:47]: Could not find Xcode project

xcodeproj肯定存在于该位置:

$ ls -l ../ember-cordova/cordova/platforms/ios/Patontheback.xcodeproj
total 28
-rwxr-xr-x 1 kitsunde staff 25639 Sep 23 02:57 project.pbxproj

我做错了什么?

1 个答案:

答案 0 :(得分:3)

这是因为它将../附加到路径上。所以它是相对于父目录而不是Fastlane文件的目录。