Giter Site home page Giter Site logo

Comments (5)

wachunei avatar wachunei commented on May 5, 2024

Here's the diff patch after running npm version, you can see ios/InternetUC/Info.plist was not updated, am I doing anything wrong?

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 8c9d419..42cffce 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -90,8 +90,8 @@ android {
         applicationId "com.internetuc"
         minSdkVersion 16
         targetSdkVersion 22
-        versionCode 6
-        versionName "1.1.2"
+        versionCode 7
+        versionName "1.1.3"
         ndk {
             abiFilters "armeabi-v7a", "x86"
         }
diff --git a/ios/InternetUC-tvOS/Info.plist b/ios/InternetUC-tvOS/Info.plist
index 2fb6a11..a78dfde 100644
--- a/ios/InternetUC-tvOS/Info.plist
+++ b/ios/InternetUC-tvOS/Info.plist
@@ -15,11 +15,11 @@
 	<key>CFBundlePackageType</key>
 	<string>APPL</string>
 	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
+	<string>1.1.3</string>
 	<key>CFBundleSignature</key>
 	<string>????</string>
 	<key>CFBundleVersion</key>
-	<string>1</string>
+	<string>6</string>
 	<key>LSRequiresIPhoneOS</key>
 	<true/>
 	<key>UILaunchStoryboardName</key>
diff --git a/ios/InternetUC-tvOSTests/Info.plist b/ios/InternetUC-tvOSTests/Info.plist
index 886825c..9b15f53 100644
--- a/ios/InternetUC-tvOSTests/Info.plist
+++ b/ios/InternetUC-tvOSTests/Info.plist
@@ -15,10 +15,10 @@
 	<key>CFBundlePackageType</key>
 	<string>BNDL</string>
 	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
+	<string>1.1.3</string>
 	<key>CFBundleSignature</key>
 	<string>????</string>
 	<key>CFBundleVersion</key>
-	<string>1</string>
+	<string>6</string>
 </dict>
 </plist>
diff --git a/ios/InternetUC.xcodeproj/project.pbxproj b/ios/InternetUC.xcodeproj/project.pbxproj
index bdc02c5..4e4318b 100644
--- a/ios/InternetUC.xcodeproj/project.pbxproj
+++ b/ios/InternetUC.xcodeproj/project.pbxproj
@@ -1186,7 +1186,7 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
-				CURRENT_PROJECT_VERSION = 5;
+				CURRENT_PROJECT_VERSION = 6;
 				DEAD_CODE_STRIPPING = NO;
 				DEVELOPMENT_TEAM = L388Z72LTH;
 				HEADER_SEARCH_PATHS = (
@@ -1210,7 +1210,7 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
-				CURRENT_PROJECT_VERSION = 5;
+				CURRENT_PROJECT_VERSION = 6;
 				DEVELOPMENT_TEAM = L388Z72LTH;
 				HEADER_SEARCH_PATHS = (
 					"$(inherited)",
diff --git a/ios/InternetUCTests/Info.plist b/ios/InternetUCTests/Info.plist
index 886825c..9b15f53 100644
--- a/ios/InternetUCTests/Info.plist
+++ b/ios/InternetUCTests/Info.plist
@@ -15,10 +15,10 @@
 	<key>CFBundlePackageType</key>
 	<string>BNDL</string>
 	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
+	<string>1.1.3</string>
 	<key>CFBundleSignature</key>
 	<string>????</string>
 	<key>CFBundleVersion</key>
-	<string>1</string>
+	<string>6</string>
 </dict>
 </plist>

from react-native-version.

stovmascript avatar stovmascript commented on May 5, 2024

I've just tried on a brand new RN project and also updated the tests and RN version being tested to accommodate for tvOS, but it seems to be working without altering the source of RNV.

Could you post some version details? node & npm/yarn, Xcode, RN...

from react-native-version.

wachunei avatar wachunei commented on May 5, 2024

Sure.

$ node --version; npm --version; yarn --version; react-native --version; /usr/bin/xcodebuild -version

v8.0.0
5.0.1
0.24.6
react-native-cli: 2.0.1
react-native: 0.44.2
Xcode 8.3.2
Build version 8E2002

I'm working on this open sourced repo btw, I've set build number to 5 (the current), add "postversion": "react-native-version --never-amend" and run npm version 1.1.3.

What is more intriguing to me is that it has effectively changed some of the plist but not all of them.

from react-native-version.

stovmascript avatar stovmascript commented on May 5, 2024

So I ran agvtool (which handles the iOS versioning part for RNV) by itself on your repo to see what would happen:

internetuc-react-native $ cd ios/
ios $ agvtool new-marketing-version 1.1.3
Setting CFBundleShortVersionString of project InternetUC to: 
    1.1.3.

Updating CFBundleShortVersionString in Info.plist(s)...

$(SRCROOT)/InternetUC/Info.plist
Cannot find "$(SRCROOT)/InternetUC/Info.plist"
Updated CFBundleShortVersionString in "InternetUC.xcodeproj/../InternetUC-tvOS/Info.plist" to 1.1.3
Updated CFBundleShortVersionString in "InternetUC.xcodeproj/../InternetUC-tvOSTests/Info.plist" to 1.1.3
Updated CFBundleShortVersionString in "InternetUC.xcodeproj/../InternetUCTests/Info.plist" to 1.1.3

And it looks like your Xcode project is misconfigured at these two lines:

Removing $(SRCROOT)/ here solves the issue: screenshot 2017-06-02 15 23 36

Do you have the absolute path there for a specific reason?

from react-native-version.

wachunei avatar wachunei commented on May 5, 2024

Thank you for taking some of your time to check this.

Actually I don't really know why it was set like that, but I know it was done after renaming whole project

I will now try to upgrade packages and bump version, then I'll close this issue later.

Thank you again!

from react-native-version.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.